(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestConfigurationOptionsDeep(t *testing.T) { |
| 77 | charset := "MYCHARSET" |
| 78 | |
| 79 | app := New().Configure(WithCharset(charset), WithoutBodyConsumptionOnUnmarshal, WithoutBanner) |
| 80 | |
| 81 | expected := DefaultConfiguration() |
| 82 | expected.Charset = charset |
| 83 | expected.DisableBodyConsumptionOnUnmarshal = true |
| 84 | expected.DisableStartupLog = true |
| 85 | |
| 86 | has := *app.config |
| 87 | |
| 88 | if !reflect.DeepEqual(has, expected) { |
| 89 | t.Fatalf("DEEP configuration is not the same after New expected:\n %#v \ngot:\n %#v", expected, has) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | func createGlobalConfiguration(t *testing.T) { |
| 94 | filename := homeConfigurationFilename(".yml") |
nothing calls this directly
no test coverage detected
searching dependent graphs…