(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestConfig_ToJSONWithIndent(t *testing.T) { |
| 46 | data, err := refConfig.ToJSONWithIndent() |
| 47 | assert.Nil(t, err) |
| 48 | assert.NotNil(t, data) |
| 49 | |
| 50 | testConfig := &Config{} |
| 51 | err = testConfig.FromJSON(data) |
| 52 | assert.Nil(t, err) |
| 53 | assert.Equal(t, refConfig, testConfig) |
| 54 | } |
| 55 | |
| 56 | func TestConfig_YAMLJSON(t *testing.T) { |
| 57 | jsonConfig := &Config{} |
nothing calls this directly
no test coverage detected