(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestBuildGrepArgs_FixedString(t *testing.T) { |
| 80 | p := NewCodeSearch(&FileReader{RepoDir: "/tmp", Ref: ""}) |
| 81 | args := p.buildGrepArgs("foo", false, false, false, nil) |
| 82 | |
| 83 | assertContains(t, args, "-F") |
| 84 | assertNotContains(t, args, "-E") |
| 85 | assertNotContains(t, args, "-P") |
| 86 | } |
| 87 | |
| 88 | func setupTestRepo(t *testing.T) string { |
| 89 | t.Helper() |
nothing calls this directly
no test coverage detected