(method, path string, headers map[string]string, urlArgs url.Values)
| 83 | } |
| 84 | |
| 85 | func makeExampleRequest(method, path string, headers map[string]string, urlArgs url.Values) *http.Request { |
| 86 | r, _ := http.NewRequest(method, fmt.Sprintf("%v?%v", path, urlArgs.Encode()), nil) |
| 87 | for k, v := range headers { |
| 88 | r.Header.Set(k, v) |
| 89 | } |
| 90 | return r |
| 91 | } |
| 92 | |
| 93 | func TestBearerExtractor(t *testing.T) { |
| 94 | request := makeExampleRequest("POST", "https://example.com/", map[string]string{"Authorization": "Bearer ToKen"}, nil) |
no test coverage detected