- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 128 for Tests (0.09 sec)
-
src/cmd/go/testdata/script/test_exit.txt
# complain about that. It's a common way to skip testing a package # entirely. go test ./main_zero ! stdout 'skipping all tests' stdout ^ok # With -v, we'll see the warning from TestMain. go test -v ./main_zero stdout 'skipping all tests' stdout ^ok # Listing all tests won't actually give a result if TestMain exits. That's okay, # because this is how TestMain works. If we decide to support -list even when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 14 20:38:03 UTC 2021 - 2.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/vet.txt
# Package with external tests ! go vet m/vetpkg stderr 'Printf' # With tags ! go vet -tags tagtest m/vetpkg stderr 'c\.go.*Printf' # With flags on ! go vet -printf m/vetpkg stderr 'Printf' # With flags off go vet -printf=false m/vetpkg ! stderr . # With only test files (tests issue #23395) go vet m/onlytest ! stderr . # With only cgo files (tests issue #24193) [!cgo] skip [short] skip go vet m/onlycgo
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 799 bytes - Viewed (0) -
src/cmd/compile/internal/test/README
This directory holds small tests and benchmarks of code generated by the compiler. This code is not for importing, and the tests are intended to verify that specific optimizations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 20:09:45 UTC 2024 - 206 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_match_no_tests_build_failure.txt
# Test that when there's a build failure and a -run flag that doesn't match, # that the error for not matching tests does not override the error for # the build failure. ! go test -run ThisWillNotMatch syntaxerror ! stderr '(?m)^ok.*\[no tests to run\]' stdout 'FAIL' -- go.mod -- module syntaxerror go 1.16 -- x.go -- package p -- x_test.go -- package p func f() (x.y, z int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 385 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_match_only_subtests_parallel.txt
# Matches only subtests, parallel go test -run Test/Sub/Nested standalone_parallel_sub_test.go ! stdout '^ok.*\[no tests to run\]' ! stderr '^ok.*\[no tests to run\]' stdout '^ok' -- standalone_parallel_sub_test.go -- package standalone_parallel_sub_test import "testing" func Test(t *testing.T) { ch := make(chan bool, 1) t.Run("Sub", func(t *testing.T) { t.Parallel() <-ch t.Run("Nested", func(t *testing.T) {}) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 20:48:08 UTC 2020 - 515 bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_why.txt
cmp stdout why-text-module.txt # why a package used only in tests? go mod why rsc.io/testonly cmp stdout why-testonly.txt # why a module used only in a test of a dependency? go mod why -m rsc.io/testonly cmp stdout why-testonly.txt # test package not needed go mod why golang.org/x/text/unused cmp stdout why-unused.txt # vendor doesn't use packages used only in tests. go mod why -vendor rsc.io/testonly cmp stdout why-vendor.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 22 16:52:00 UTC 2020 - 2.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_all.txt
env MODFMT='{{.Path}}' # 'go list -deps' lists packages and tests in the main module, # along with their transitive dependencies. go list -f $PKGFMT -deps ./... stdout -count=4 '^.' stdout '^example.com/a$' stdout '^example.com/b$' stdout '^example.com/main$' stdout '^example.com/main/testonly' # 'go list -deps -test' lists transitive imports of tests and non-tests in the # main module. go list -f $PKGFMT -deps -test ./...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 20 18:41:57 UTC 2021 - 13.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_dash_n_cgo.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 22:04:29 UTC 2020 - 268 bytes - Viewed (0) -
src/cmd/go/testdata/script/test_match_no_subtests_parallel.txt
# Matches no subtests, parallel go test -run Test/Sub/ThisWillNotMatch standalone_parallel_sub_test.go stdout '^ok.*\[no tests to run\]' -- standalone_parallel_sub_test.go -- package standalone_parallel_sub_test import "testing" func Test(t *testing.T) { ch := make(chan bool, 1) t.Run("Sub", func(t *testing.T) { t.Parallel() <-ch t.Run("Nested", func(t *testing.T) {}) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 20:48:08 UTC 2020 - 472 bytes - Viewed (0) -
src/cmd/go/testdata/script/vendor_issue12156.txt
# Tests issue #12156, a former index out of range panic. env GO111MODULE=off env GOPATH=$WORK/gopath/src/testvendor2 # vendor/x is directly in $GOPATH, not in $GOPATH/src cd $WORK/gopath/src/testvendor2/src/p ! go build p.go ! stderr panic # Make sure it doesn't panic stderr 'cannot find package "x"' -- testvendor2/src/p/p.go -- package p import "x" -- testvendor2/vendor/x/x.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 398 bytes - Viewed (0)