(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestBuildGrepArgs_FixedString(t *testing.T) { |
| 96 | p := NewCodeSearch(&FileReader{RepoDir: "/tmp", Ref: ""}) |
| 97 | args := p.buildGrepArgs("foo", false, false, false, nil) |
| 98 | |
| 99 | assertContains(t, args, "-F") |
| 100 | assertNotContains(t, args, "-E") |
| 101 | assertNotContains(t, args, "-P") |
| 102 | } |
| 103 | |
| 104 | func setupTestRepo(t *testing.T) string { |
| 105 | t.Helper() |
nothing calls this directly
no test coverage detected