TODO: Add test for file
(t *testing.T, filename string, typ interface{})
| 315 | // TODO: Add test for file |
| 316 | |
| 317 | func testWriteYAMLToFile(t *testing.T, filename string, typ interface{}) { |
| 318 | jsonBytes, err := yaml.Marshal(typ) |
| 319 | if err != nil { |
| 320 | t.Fatal(err) |
| 321 | } |
| 322 | |
| 323 | err = ioutil.WriteFile(filename, jsonBytes, TestFilePerms) |
| 324 | if err != nil { |
| 325 | t.Fatal(err) |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | func testTempFileSource(t *testing.T) FileSource { |
| 330 | dir := testTempDir(t) |
no outgoing calls
no test coverage detected