// +build !go1.8 // Code generated by "httpsnoop/codegen"; DO NOT EDIT package httpsnoop import ( "io" "net/http" "testing" ) func TestWrap(t *testing.T) { // combination 1/16 { t.Log("http.ResponseWriter") w := Wrap(struct { http.ResponseWriter }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 2/16 { t.Log("http.ResponseWriter, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 3/16 { t.Log("http.ResponseWriter, http.Hijacker") w := Wrap(struct { http.ResponseWriter http.Hijacker }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 4/16 { t.Log("http.ResponseWriter, http.Hijacker, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.Hijacker io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 5/16 { t.Log("http.ResponseWriter, http.CloseNotifier") w := Wrap(struct { http.ResponseWriter http.CloseNotifier }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 6/16 { t.Log("http.ResponseWriter, http.CloseNotifier, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.CloseNotifier io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 7/16 { t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker") w := Wrap(struct { http.ResponseWriter http.CloseNotifier http.Hijacker }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 8/16 { t.Log("http.ResponseWriter, http.CloseNotifier, http.Hijacker, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.CloseNotifier http.Hijacker io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 9/16 { t.Log("http.ResponseWriter, http.Flusher") w := Wrap(struct { http.ResponseWriter http.Flusher }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 10/16 { t.Log("http.ResponseWriter, http.Flusher, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.Flusher io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 11/16 { t.Log("http.ResponseWriter, http.Flusher, http.Hijacker") w := Wrap(struct { http.ResponseWriter http.Flusher http.Hijacker }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 12/16 { t.Log("http.ResponseWriter, http.Flusher, http.Hijacker, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.Flusher http.Hijacker io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != false { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 13/16 { t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier") w := Wrap(struct { http.ResponseWriter http.Flusher http.CloseNotifier }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 14/16 { t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.Flusher http.CloseNotifier io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != false { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } // combination 15/16 { t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker") w := Wrap(struct { http.ResponseWriter http.Flusher http.CloseNotifier http.Hijacker }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != false { t.Error("unexpected interface") } } // combination 16/16 { t.Log("http.ResponseWriter, http.Flusher, http.CloseNotifier, http.Hijacker, io.ReaderFrom") w := Wrap(struct { http.ResponseWriter http.Flusher http.CloseNotifier http.Hijacker io.ReaderFrom }{}, Hooks{}) if _, ok := w.(http.ResponseWriter); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Flusher); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.CloseNotifier); ok != true { t.Error("unexpected interface") } if _, ok := w.(http.Hijacker); ok != true { t.Error("unexpected interface") } if _, ok := w.(io.ReaderFrom); ok != true { t.Error("unexpected interface") } } }