code: func InitCoverage(name string) {
  	// We read the coverage destination in from the KUBE_COVERAGE_FILE env var,
  	// or if it's empty we just use a default in /tmp
  	coverageFile = os.Getenv("KUBE_COVERAGE_FILE")
  	if coverageFile == "" {
  		coverageFile = "/tmp/k8s-" + name + ".cov"
  	}
  	fmt.Println("Dumping coverage information to " + coverageFile)
  
  	flushInterval := 5 * time.Second
  	requestedInterval := os.Getenv("KUBE_COVERAGE_FLUSH_INTERVAL")
  	if requestedInterval != "" {
  		if duration, err := time.ParseDuration(requestedInterval); err == nil {
  			flushInterval = duration
  		} else {
  			panic("Invalid KUBE_COVERAGE_FLUSH_INTERVAL value; try something like '30s'.")
  		}
  	}
  
  	// Set up the unit test framework with the required arguments to activate test coverage.
  	flag.CommandLine.Parse([]string{"-test.coverprofile", tempCoveragePath()})
  
  	// Begin periodic logging
  	go wait.Forever(FlushCoverage, flushInterval)
  }
docs: // InitCoverage is called from the dummy unit test to prepare Go's coverage framework.
  // Clients should never need to call it.