Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InitHook (0.14 sec)

  1. src/internal/coverage/cfile/hooks.go

    // license that can be found in the LICENSE file.
    
    package cfile
    
    import "internal/runtime/exithook"
    
    // InitHook is invoked from the main package "init" routine in
    // programs built with "-cover". This function is intended to be
    // called only by the compiler (via runtime/coverage.initHook).
    //
    // If 'istest' is false, it indicates we're building a regular program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/coverage/coverage.go

    // license that can be found in the LICENSE file.
    
    package coverage
    
    import (
    	"internal/coverage/cfile"
    	"io"
    )
    
    // initHook is invoked from main.init in programs built with -cover.
    // The call is emitted by the compiler.
    func initHook(istest bool) {
    	cfile.InitHook(istest)
    }
    
    // WriteMetaDir writes a coverage meta-data file for the currently
    // running program to the directory specified in 'dir'. An error will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/builtin.go

    	return typs[:]
    }
    
    var coverageDecls = [...]struct {
    	name string
    	tag  int
    	typ  int
    }{
    	{"initHook", funcTag, 1},
    }
    
    func coverageTypes() []*types.Type {
    	var typs [2]*types.Type
    	typs[0] = types.Types[types.TBOOL]
    	typs[1] = newSig(params(typs[0]), nil)
    	return typs[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top