(t *testing.T)
| 290 | } |
| 291 | |
| 292 | func TestFixedDistanceStringFindFirstChar(t *testing.T) { |
| 293 | re := MustCompile(`..abc`) |
| 294 | m, err := re.FindStringMatch("zzxxabc") |
| 295 | if err != nil { |
| 296 | t.Fatalf("FindStringMatch failed: %v", err) |
| 297 | } |
| 298 | if m == nil { |
| 299 | t.Fatal("expected match") |
| 300 | } |
| 301 | if got, want := m.RuneIndex, 2; got != want { |
| 302 | t.Fatalf("match index = %d, want %d", got, want) |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | func TestMinRequiredLengthShortCircuits(t *testing.T) { |
| 307 | re := MustCompile(`abc`) |
nothing calls this directly
no test coverage detected