Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for countRows (0.63 sec)

  1. src/bufio/scan_test.go

    	}
    }
    
    type countdown int
    
    func (c *countdown) split(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	if *c > 0 {
    		*c--
    		return 1, data[:1], nil
    	}
    	return 0, nil, nil
    }
    
    // Check that the looping-at-EOF check doesn't trigger for merely empty tokens.
    func TestEmptyLinesOK(t *testing.T) {
    	c := countdown(10000)
    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