(t *testing.T, config userconfig.Config)
| 101 | } |
| 102 | |
| 103 | func readerFromConfig(t *testing.T, config userconfig.Config) io.Reader { |
| 104 | b, err := json.Marshal(config) |
| 105 | require.NoError(t, err) |
| 106 | return bytes.NewReader(b) |
| 107 | } |
| 108 | |
| 109 | // parseView parses a userconfig.View from JSON. |
| 110 | func parseView(t *testing.T, b []byte) userconfig.View { |
no test coverage detected