(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestSnippetAroundHelper(t *testing.T) { |
| 110 | // Reuse the session snippet helper to ensure it stays covered/working. |
| 111 | long := "alpha " + strings.Repeat("z", 300) + " needle " + strings.Repeat("y", 300) |
| 112 | s := snippetAround(long, strings.ToLower(long), "needle") |
| 113 | if !strings.Contains(s, "needle") { |
| 114 | t.Errorf("snippet should contain the term: %q", s) |
| 115 | } |
| 116 | } |
nothing calls this directly
no test coverage detected