(t *testing.T)
| 5 | ) |
| 6 | |
| 7 | func TestBashEscape(t *testing.T) { |
| 8 | assertEqual(t, `''`, BashEscape("")) |
| 9 | assertEqual(t, `$'escape\'quote'`, BashEscape("escape'quote")) |
| 10 | assertEqual(t, `$'foo\r\n\tbar'`, BashEscape("foo\r\n\tbar")) |
| 11 | assertEqual(t, `$'foo bar'`, BashEscape("foo bar")) |
| 12 | assertEqual(t, `$'\xc3\xa9'`, BashEscape("é")) |
| 13 | } |
| 14 | |
| 15 | func TestShellDetection(t *testing.T) { |
| 16 | assertNotNil(t, DetectShell("-bash")) |
nothing calls this directly
no test coverage detected