()
| 9 | ) |
| 10 | |
| 11 | func emptyTestHandler() service { |
| 12 | return func(h http.Handler) http.Handler { |
| 13 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 14 | w.WriteHeader(http.StatusAccepted) |
| 15 | }) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestServiceLoader(t *testing.T) { |
| 20 | req, err := http.NewRequest("GET", "/api/v1/stats", nil) |
no outgoing calls
no test coverage detected
searching dependent graphs…