- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInit (0.08 sec)
-
src/go/scanner/scanner_test.go
if S.ErrorCount != len(invalidSegments) { t.Errorf("got %d errors; want %d", S.ErrorCount, len(invalidSegments)) } } // Verify that initializing the same scanner more than once works correctly. func TestInit(t *testing.T) { var s Scanner // 1st init src1 := "if true { }" f1 := fset.AddFile("src1", fset.Base(), len(src1)) s.Init(f1, []byte(src1), nil, dontInsertSemis) if f1.Size() != len(src1) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0)