(t *testing.T)
| 1713 | } |
| 1714 | |
| 1715 | func TestSubWithKeyDelimiter(t *testing.T) { |
| 1716 | v := NewWithOptions(KeyDelimiter("::")) |
| 1717 | v.SetConfigType("yaml") |
| 1718 | r := strings.NewReader(string(yamlExampleWithDot)) |
| 1719 | err := v.unmarshalReader(r, v.config) |
| 1720 | require.NoError(t, err) |
| 1721 | |
| 1722 | subv := v.Sub("emails") |
| 1723 | assert.Equal(t, "01/02/03", subv.Get("steve@hacker.com::created")) |
| 1724 | } |
| 1725 | |
| 1726 | var jsonWriteExpected = []byte(`{ |
| 1727 | "batters": { |
nothing calls this directly
no test coverage detected