(t *testing.T, c Configurator)
| 122 | } |
| 123 | |
| 124 | func testConfigurationGlobal(t *testing.T, c Configurator) { |
| 125 | app := New().Configure(c) |
| 126 | |
| 127 | if has, expected := *app.config, DefaultConfiguration(); !reflect.DeepEqual(has, expected) { |
| 128 | t.Fatalf("global configuration (which should be defaulted) is not the same with the default one:\n %#v \ngot:\n %#v", has, expected) |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func TestConfigurationYAML(t *testing.T) { |
| 133 | yamlFile, ferr := os.CreateTemp("", "configuration.yml") |
no test coverage detected
searching dependent graphs…