GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

server_test.go 297B

1234567891011121314151617
  1. package daemon
  2. import (
  3. "testing"
  4. "github.com/fluxcd/flux/http"
  5. )
  6. func TestRouterImplementsServer(t *testing.T) {
  7. router := NewRouter()
  8. // Calling NewHandler attaches handlers to the router
  9. NewHandler(nil, router)
  10. err := http.ImplementsServer(router)
  11. if err != nil {
  12. t.Error(err)
  13. }
  14. }