Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 21 of 21 for atoi32 (0.07 sec)

  1. src/testing/testing.go

    		m.timer.Stop()
    	}
    }
    
    func parseCpuList() {
    	for _, val := range strings.Split(*cpuListStr, ",") {
    		val = strings.TrimSpace(val)
    		if val == "" {
    			continue
    		}
    		cpu, err := strconv.Atoi(val)
    		if err != nil || cpu <= 0 {
    			fmt.Fprintf(os.Stderr, "testing: invalid value %q for -test.cpu\n", val)
    			os.Exit(1)
    		}
    		cpuList = append(cpuList, cpu)
    	}
    	if cpuList == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top