Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,547 for xtest (0.05 sec)

  1. src/cmd/go/testdata/script/cover_pkgall_multiple_mains.txt

    package main
    
    import "testing"
    
    func TestFoo(t *testing.T) {
      Foo()
    }
    
    -- $GOPATH/src/example.com/cov/xtest/x.go --
    package x
    
    -- $GOPATH/src/example.com/cov/xtest/x_test.go --
    package x_test
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 13 16:25:00 UTC 2019
    - 883 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_no_go.txt

    stderr 'no non-test Go files in '
    
    ! go build ./empty/xtest
    stderr 'no non-test Go files in '
    
    ! go build ./empty/testxtest
    stderr 'no non-test Go files in '
    
    ! go build ./exclude
    stderr 'build constraints exclude all Go files in '
    
    ! go build ./exclude/ignore
    stderr 'no Go files in '
    
    ! go build ./exclude/empty
    stderr 'no Go files in '
    
    -- go.mod --
    module m
    
    go 1.16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 748 bytes
    - Viewed (0)
  3. src/runtime/import_test.go

    //
    // 1. Tests use the signature "XTest<name>(t TestingT)". Since runtime can't import
    // testing, test functions can't use testing.T, so instead we have the T
    // interface, which *testing.T satisfies. And we start names with "XTest"
    // because otherwise go test will complain about Test functions with the wrong
    // signature. To actually expose these as test functions, this file contains
    // trivial wrappers.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 06 14:45:46 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_vendor_embed.txt

    go mod vendor
    cmp vendor/example.com/a/samedir_embed.txt a/samedir_embed.txt
    cmp vendor/example.com/a/subdir/embed.txt a/subdir/embed.txt
    cmp vendor/example.com/a/subdir/test/embed.txt a/subdir/test/embed.txt
    cmp vendor/example.com/a/subdir/test/xtest/embed.txt a/subdir/test/xtest/embed.txt
    
    cd broken_no_matching_files
    ! go mod vendor
    stderr '^go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found$'
    go mod vendor -e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:14:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_empty.txt

    cd $GOPATH/src/empty/pkg
    go test -cover -coverpkg=. -race
    
    [short] stop # Only run first case in short mode
    
    cd $GOPATH/src/empty/test
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/xtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgxtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgtestxtest
    go test -cover -coverpkg=. -race
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/import_main.txt

    # ... even if that package's test is an xtest.
    go build p3
    ! go test p3
    stderr 'import "x" is a program, not an importable package'
    
    # ... even if that package is a package main
    go build p4
    ! go test -c p4
    stderr 'import "x" is a program, not an importable package'
    
    # ... even if that package is a package main using an xtest.
    go build p5
    ! go test -c p5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 18 21:48:16 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_dep_loop.txt

    [short] skip
    [compiler:gccgo] skip
    
    # coverdep2/p1's xtest imports coverdep2/p2 which imports coverdep2/p1.
    # Make sure that coverage on coverdep2/p2 recompiles coverdep2/p2.
    
    go test -short -cover coverdep2/p1
    stdout 'coverage: 100.0% of statements' # expect 100.0% coverage
    
    -- go.mod --
    module coverdep2
    
    go 1.16
    -- p1/p.go --
    package p1
    
    func F() int { return 1 }
    -- p1/p_test.go --
    package p1_test
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 550 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_json.txt

    # Run go test -json on errors and check it's cached
    go test -json -short -v errors
    stdout '"Action":"output","Package":"errors","Output":".*\(cached\)'
    
    go test -json -bench=NONE -short -v errors
    stdout '"Package":"errors"'
    stdout '"Action":"run"'
    
    # Test running test2json
    go test -o $WORK/tmp/errors.test$GOEXE -c errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. test/ken/modconst.go

    		b = a % 60
    		u8test(a, b, 60)
    		b = a % 64
    		u8test(a, b, 64)
    		b = a % 127
    		u8test(a, b, 127)
    	}
    }
    
    func main() {
    	xtest()
    	i64run()
    	u64run()
    	i32run()
    	u32run()
    	i16run()
    	u16run()
    	i8run()
    	u8run()
    }
    
    func xtest() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 9.2K bytes
    - Viewed (0)
  10. test/ken/divconst.go

    		b = a / 64
    		u8test(a, b, 64)
    		b = a / 128
    		u8test(a, b, 128)
    		b = a / 184
    		u8test(a, b, 184)
    	}
    }
    
    func main() {
    	xtest()
    	i64run()
    	u64run()
    	i32run()
    	u32run()
    	i16run()
    	u16run()
    	i8run()
    	u8run()
    }
    
    func xtest() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 9.2K bytes
    - Viewed (0)
Back to top