GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cli/routes_test.go at master · appoxy/cli Expand file tree/ Copy pathroutes_test.goMore file actions 27 lines (23 loc) · 515 Bytes / Copy pathroutes_test.goFile metadata and controls27 lines (23 loc) · 515 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 package main import ( "net/http" "os" "testing" "github.com/fnproject/cli/client" ) func TestEnvAsHeader(t *testing.T) { const expectedValue = "v=v" os.Setenv("k", expectedValue) cases := [][]string{ nil, []string{}, []string{"k"}, } for _, selectedEnv := range cases { req, _ := http.NewRequest("GET", "http://www.example.com", nil) client.EnvAsHeader(req, selectedEnv) if found := req.Header.Get("k"); found != expectedValue { t.Errorf("not found expected header: %v", found) } } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |