(m *testing.M)
| 121 | } |
| 122 | |
| 123 | func TestMain(m *testing.M) { |
| 124 | d := &TestDriver{} |
| 125 | h1 := NewHandler(d) |
| 126 | go h1.ServeTCP("test", "localhost:32234", "", nil) |
| 127 | |
| 128 | e := &ErrDriver{} |
| 129 | h2 := NewHandler(e) |
| 130 | go h2.ServeTCP("err", "localhost:32567", "", nil) |
| 131 | |
| 132 | // Test that the ServeTCP is ready for use. |
| 133 | callURL("http://localhost:32234/Plugin.Activate") |
| 134 | callURL("http://localhost:32567/Plugin.Activate") |
| 135 | |
| 136 | os.Exit(m.Run()) |
| 137 | } |
| 138 | |
| 139 | func TestActivate(t *testing.T) { |
| 140 | response, err := http.Get("http://localhost:32234/Plugin.Activate") |
nothing calls this directly
no test coverage detected
searching dependent graphs…