(t *testing.T, contents interface{})
| 21 | ) |
| 22 | |
| 23 | func writeTempFile(t *testing.T, contents interface{}) string { |
| 24 | t.Helper() |
| 25 | fn := filepath.Join(t.TempDir(), "content.json") |
| 26 | f, err := os.Create(fn) |
| 27 | require.NoError(t, err) |
| 28 | require.NoError(t, json.NewEncoder(f).Encode(contents)) |
| 29 | require.NoError(t, f.Close()) |
| 30 | return fn |
| 31 | } |
| 32 | |
| 33 | func TestImportClient(t *testing.T) { |
| 34 | t.Context() |
no test coverage detected