(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func Test_AddCommand(t *testing.T) { |
| 9 | content, err := AddCommand("echo hello", []byte{}) |
| 10 | |
| 11 | assert.Nil(t, err) |
| 12 | assert.Equal(t, "tests:\n echo hello:\n exit-code: 0\n stdout: hello\n", string(content)) |
| 13 | } |
| 14 | |
| 15 | func Test_AddCommand_AddToExisting(t *testing.T) { |
| 16 | existing := []byte(` |
nothing calls this directly
no test coverage detected