Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestScanLineTooLong (0.09 seconds)

  1. src/bufio/scan_test.go

    		}
    	}
    	err := s.Err()
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    // Test that the line splitter errors out on a long line.
    func TestScanLineTooLong(t *testing.T) {
    	const smallMaxTokenSize = 256 // Much smaller for more efficient testing.
    	// Build a buffer of lots of line lengths up to but not exceeding smallMaxTokenSize.
    	tmp := new(bytes.Buffer)
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Click Count (0)
Back to Top