(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestEncBuiltinJsonMarshalEmptyString(t *testing.T) { |
| 58 | s := RunServerOnPort(TEST_PORT) |
| 59 | defer s.Shutdown() |
| 60 | |
| 61 | ec := NewJsonEncodedConn(t) |
| 62 | defer ec.Close() |
| 63 | ch := make(chan bool) |
| 64 | |
| 65 | ec.Subscribe("json_empty_string", func(s string) { |
| 66 | if s != "" { |
| 67 | t.Fatalf("Received test of '%v', wanted empty string\n", s) |
| 68 | } |
| 69 | ch <- true |
| 70 | }) |
| 71 | ec.Publish("json_empty_string", "") |
| 72 | if e := Wait(ch); e != nil { |
| 73 | t.Fatal("Did not receive the message") |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestEncBuiltinJsonMarshalInt(t *testing.T) { |
| 78 | s := RunServerOnPort(TEST_PORT) |
nothing calls this directly
no test coverage detected