parseView parses a userconfig.View from JSON.
(t *testing.T, b []byte)
| 108 | |
| 109 | // parseView parses a userconfig.View from JSON. |
| 110 | func parseView(t *testing.T, b []byte) userconfig.View { |
| 111 | var x userconfig.View |
| 112 | err := json.Unmarshal(b, &x) |
| 113 | require.NoError(t, err, "Could not unmarshal JSON: %v", string(b)) |
| 114 | return x |
| 115 | } |
no test coverage detected