Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setCounterStmt (0.13 sec)

  1. src/cmd/cover/cover.go

    	// import and not used error when there's no code in a file.
    	if *mode == "atomic" {
    		fmt.Fprintf(fd, "\nvar _ = %sLoadUint32\n", atomicPackagePrefix())
    	}
    }
    
    // setCounterStmt returns the expression: __count[23] = 1.
    func setCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s = 1", counter)
    }
    
    // incCounterStmt returns the expression: __count[23]++.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top