Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 6,421 for testAnd (0.12 sec)

  1. src/cmd/link/internal/ld/nooptcgolink_test.go

    package ld
    
    import (
    	"internal/testenv"
    	"path/filepath"
    	"testing"
    )
    
    func TestNooptCgoBuild(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    	t.Parallel()
    
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	dir := t.TempDir()
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags=-N -l", "-o", filepath.Join(dir, "a.out"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 733 bytes
    - Viewed (0)
  2. src/syscall/exec_linux_test.go

    	}
    }
    
    func TestGroupCleanup(t *testing.T) {
    	testenv.MustHaveExecPath(t, "id")
    	cmd := testenv.Command(t, "id")
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Credential: &syscall.Credential{
    			Uid: 0,
    			Gid: 0,
    		},
    	}
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		if testenv.SyscallIsNotSupported(err) {
    			t.Skipf("skipping: %v: %v", cmd, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. src/internal/abi/abi_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package abi_test
    
    import (
    	"internal/abi"
    	"internal/testenv"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func TestFuncPC(t *testing.T) {
    	// Test that FuncPC* can get correct function PC.
    	pcFromAsm := abi.FuncPCTestFnAddr
    
    	// Test FuncPC for locally defined function
    	pcFromGo := abi.FuncPCTest()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/testing/helper_test.go

    package testing_test
    
    import (
    	"internal/testenv"
    	"os"
    	"regexp"
    	"strings"
    	"testing"
    )
    
    func TestTBHelper(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "1" {
    		testTestHelper(t)
    
    		// Check that calling Helper from inside a top-level test function
    		// has no effect.
    		t.Helper()
    		t.Error("8")
    		return
    	}
    
    	testenv.MustHaveExec(t)
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:24:47 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/reproduciblebuilds_test.go

    package test
    
    import (
    	"bytes"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    func TestReproducibleBuilds(t *testing.T) {
    	tests := []string{
    		"issue20272.go",
    		"issue27013.go",
    		"issue30202.go",
    	}
    
    	testenv.MustHaveGoBuild(t)
    	iters := 10
    	if testing.Short() {
    		iters = 4
    	}
    	t.Parallel()
    	for _, test := range tests {
    		test := test
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/cover/cover_test.go

    // itself via "go test -cover".
    func TestCoverWithToolExec(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	toolexecArg := "-toolexec=" + testcover(t)
    
    	t.Run("CoverHTML", func(t *testing.T) {
    		testCoverHTML(t, toolexecArg)
    	})
    	t.Run("HtmlUnformatted", func(t *testing.T) {
    		testHtmlUnformatted(t, toolexecArg)
    	})
    	t.Run("FuncWithDuplicateLines", func(t *testing.T) {
    		testFuncWithDuplicateLines(t, toolexecArg)
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import (
    	"bytes"
    	"encoding/hex"
    	"errors"
    	"io"
    	"io/fs"
    	"os"
    	"path"
    	"reflect"
    	"slices"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"testing/iotest"
    	"time"
    )
    
    func bytediff(a, b []byte) string {
    	const (
    		uniqueA  = "-  "
    		uniqueB  = "+  "
    		identity = "   "
    	)
    	var ss []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/go/internal/srcimporter/srcimporter_test.go

    // TestIssue23092 tests relative imports.
    func TestIssue23092(t *testing.T) {
    	testImportPath(t, "./testdata/issue23092")
    }
    
    // TestIssue24392 tests imports against a path containing 'testdata'.
    func TestIssue24392(t *testing.T) {
    	testImportPath(t, "go/internal/srcimporter/testdata/issue24392")
    }
    
    func TestCgo(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    
    	buildCtx := build.Default
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. src/cmd/go/init_test.go

    package main_test
    
    import (
    	"internal/testenv"
    	"sync/atomic"
    	"testing"
    )
    
    // BenchmarkExecGoEnv measures how long it takes for 'go env GOARCH' to run.
    // Since 'go' is executed, remember to run 'go install cmd/go' before running
    // the benchmark if any changes were done.
    func BenchmarkExecGoEnv(b *testing.B) {
    	testenv.MustHaveExec(b)
    	gotool, err := testenv.GoTool()
    	if err != nil {
    		b.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:26 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/clobberdead_test.go

    package test
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    const helloSrc = `
    package main
    import "fmt"
    func main() { fmt.Println("hello") }
    `
    
    func TestClobberDead(t *testing.T) {
    	// Test that clobberdead mode generates correct program.
    	runHello(t, "-clobberdead")
    }
    
    func TestClobberDeadReg(t *testing.T) {
    	// Test that clobberdeadreg mode generates correct program.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top