(t *testing.T)
| 233 | } |
| 234 | |
| 235 | func TestFixedDistanceStringFindFirstChar(t *testing.T) { |
| 236 | re := MustCompile(`..abc`) |
| 237 | m, err := re.FindStringMatch("zzxxabc") |
| 238 | if err != nil { |
| 239 | t.Fatalf("FindStringMatch failed: %v", err) |
| 240 | } |
| 241 | if m == nil { |
| 242 | t.Fatal("expected match") |
| 243 | } |
| 244 | if got, want := m.RuneIndex, 2; got != want { |
| 245 | t.Fatalf("match index = %d, want %d", got, want) |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | func TestMinRequiredLengthShortCircuits(t *testing.T) { |
| 250 | re := MustCompile(`abc`) |
nothing calls this directly
no test coverage detected