TestDefaultConfig verifies that default config values are omitted from URL.
(t *testing.T)
| 106 | |
| 107 | // TestDefaultConfig verifies that default config values are omitted from URL. |
| 108 | func TestDefaultConfig(t *testing.T) { |
| 109 | cfg := defaultConfig() |
| 110 | url, changed := cfg.makeURL(url.URL{}) |
| 111 | if changed { |
| 112 | t.Error("applyConfig returned changed=true after applying default config") |
| 113 | } |
| 114 | if url.String() != "" { |
| 115 | t.Errorf("applyConfig returned %q; expecting %q", url.String(), "") |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | func TestConfigMenu(t *testing.T) { |
| 120 | // Save some test settings. |
nothing calls this directly
no test coverage detected
searching dependent graphs…