mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Add vendor folder to git
This commit is contained in:
parent
66cf5eaafb
commit
183585f56f
6916 changed files with 2629581 additions and 1 deletions
17
vendor/github.com/emicklei/go-restful/mime_test.go
generated
vendored
Normal file
17
vendor/github.com/emicklei/go-restful/mime_test.go
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package restful
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// go test -v -test.run TestSortMimes ...restful
|
||||
func TestSortMimes(t *testing.T) {
|
||||
accept := "text/html; q=0.8, text/plain, image/gif, */*; q=0.01, image/jpeg"
|
||||
result := sortedMimes(accept)
|
||||
got := fmt.Sprintf("%v", result)
|
||||
want := "[{text/plain 1} {image/gif 1} {image/jpeg 1} {text/html 0.8} {*/* 0.01}]"
|
||||
if got != want {
|
||||
t.Errorf("bad sort order of mime types:%s", got)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue