Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for coerced (1.13 sec)

  1. src/cmd/compile/internal/walk/convert.go

    }
    
    // dataWordFuncName returns the name of the function used to convert a value of type "from"
    // to the data word of an interface.
    // argType is the type the argument needs to be coerced to.
    // needsaddr reports whether the value should be passed (needaddr==false) or its address (needsaddr==true).
    func dataWordFuncName(from *types.Type) (fnname string, argType *types.Type, needsaddr bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_asm.txt

    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test cover for a package that has an assembly function.
    
    go test -outputdir=$WORK -coverprofile=cover.out coverasm
    go tool cover -func=$WORK/cover.out
    stdout '\tg\t*100.0%' # Check g is 100% covered.
    ! stdout '\tf\t*[0-9]' # Check for no coverage on the assembly function
    
    -- go.mod --
    module coverasm
    
    go 1.16
    -- p.go --
    package p
    
    func f()
    
    func g() {
    	println("g")
    }
    -- p.s --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 604 bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/cover.go

    		}
    	}
    	return "", fmt.Errorf("internal error: unable to locate build action for package %q run action", p.ImportPath)
    }
    
    // WriteCoveragePercent writes out to the writer 'w' a "percent
    // statements covered" for the package whose test-run action is
    // 'runAct', based on the meta-data file 'mf'. This helper is used in
    // cases where a user runs "go test -cover" on a package that has
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_build_pkg_select.txt

    env GOCOVERDIR=$SAVEGOCOVERDIR
    
    # Examine the result.
    go tool covdata percent -i=$WORK/covdata
    stdout 'coverage: 100.0% of statements'
    
    # By default we want to see packages resident in the module covered,
    # but not dependencies.
    go tool covdata textfmt -i=$WORK/covdata -o=$WORK/covdata/out.txt
    grep 'mode: set' $WORK/covdata/out.txt
    grep 'mod.example/main/main.go:' $WORK/covdata/out.txt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    		if includeMain && p.Name == "main" && !haveMatch {
    			haveMatch = true
    			cmode = "regonly"
    		}
    
    		// Mark package for instrumentation.
    		p.Internal.Cover.Mode = cmode
    		covered = append(covered, p)
    
    		// Force import of sync/atomic into package if atomic mode.
    		if cfg.BuildCoverMode == "atomic" {
    			EnsureImport(p, "sync/atomic")
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  6. doc/next/6-stdlib/99-minor/structs/66408.md

    <!-- This is a new package; covered in 6-stdlib/3-structs.md. -->...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 66 bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/import.go

    // if it were in the module with module path mpath and root mdir.
    // If path is syntactically not within mpath,
    // or if mdir is a local file tree (isLocal == true) and the directory
    // that would hold path is in a sub-module (covered by a go.mod below mdir),
    // dirInModule returns "", false, nil.
    //
    // Otherwise, dirInModule returns the name of the directory where
    // Go source files would be expected, along with a boolean indicating
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_coverpkg_with_init.txt

    # statements in the packages matched by "./..."; package "a" (for
    # example) has two statements so we expect 20.0% stmts covered. Go
    # 1.19 would print 50% here (due to force importing of all ./...
    # packages); prior to the fix for #58770 Go 1.20 would show 100%
    # coverage. For packages "x" and "f" (which have no tests), check for
    # 0% stmts covered (as opposed to "no test files").
    
    go test -count=1 -coverprofile=cov.dat -coverpkg=./... ./...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 12:33:44 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    	if p.rewriteCalls(f) {
    		// Add `import _cgo_unsafe "unsafe"` after the package statement.
    		f.Edit.Insert(f.offset(f.AST.Name.End()), "; import _cgo_unsafe \"unsafe\"")
    	}
    	p.rewriteRef(f)
    }
    
    // loadDefines coerces gcc into spitting out the #defines in use
    // in the file f and saves relevant renamings in f.Name[name].Define.
    func (p *Package) loadDefines(f *File) {
    	var b bytes.Buffer
    	b.WriteString(builtinProlog)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  10. src/bufio/bufio_test.go

    		func(r *Reader, delim byte) ([]byte, error) {
    			data, err := r.ReadString(delim)
    			return []byte(data), err
    		},
    		// ReadLine doesn't fit the data/pattern easily
    		// so we leave it out. It should be covered via
    		// the ReadSlice test since ReadLine simply calls
    		// ReadSlice, and it's that function that handles
    		// the last byte.
    	}
    
    	// Try all readers with UnreadByte.
    	for rno, read := range readers {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
Back to top