Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isBenchmarkName (0.22 sec)

  1. src/cmd/internal/test2json/test2json.go

    		// Must be a line without a \n, so a partial line.
    		l.part(l.b)
    		l.b = l.b[:0]
    	}
    }
    
    var benchmark = []byte("Benchmark")
    
    // isBenchmarkName reports whether b is a valid benchmark name
    // that might appear as the first field in a benchmark result line.
    func isBenchmarkName(b []byte) bool {
    	if !bytes.HasPrefix(b, benchmark) {
    		return false
    	}
    	if len(b) == len(benchmark) { // just "Benchmark"
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
Back to top