MCPcopy Create free account
hub / github.com/kataras/iris / testConfigurationGlobal

Function testConfigurationGlobal

configuration_test.go:124–130  ·  view source on GitHub ↗
(t *testing.T, c Configurator)

Source from the content-addressed store, hash-verified

122}
123
124func 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
132func TestConfigurationYAML(t *testing.T) {
133 yamlFile, ferr := os.CreateTemp("", "configuration.yml")

Callers 1

TestConfigurationGlobalFunction · 0.85

Calls 5

DeepEqualMethod · 0.80
FatalfMethod · 0.80
NewFunction · 0.70
DefaultConfigurationFunction · 0.70
ConfigureMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…