Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestScanLineTooLong (0.18 sec)

  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)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top