(name string, contents string)
| 420 | } |
| 421 | |
| 422 | func (t TailTest) CreateFile(name string, contents string) { |
| 423 | err := ioutil.WriteFile(t.path+"/"+name, []byte(contents), 0600) |
| 424 | if err != nil { |
| 425 | t.Fatal(err) |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | func (t TailTest) RemoveFile(name string) { |
| 430 | err := os.Remove(t.path + "/" + name) |
no test coverage detected