Go Search
ToutMode IA

Environ 100 résultats (245 ms)

Résultats

go.dev
cmd › go › internal › test@go1.27.0
1

test package - cmd/go/internal/test - Go Packages

Variables This section is empty. View Sourcevar CmdTest = &base.Command{ CustomFlags: true, UsageLine: testUsage, Short: "test packages", Long: ` 'Go test' automates testing the packages named by the import paths. It prints…summary of the test results in the format: ok archive/tar 0.011s FAIL archive/zip 0.022s ok compress/gzip 0.033s ... followed by detailed output for each failed package. 'Go test

go.dev
pkg › testing
2

testing package - testing - Go Packages

testing of Go packages. It is intended to be used in concert with the "go test" command, which automates execution of any function of the form func TestXxx(*testing.T) where Xxx does…start with a lowercase letter. The function name serves to identify the test routine. Within these functions, use T.Error, T.Fail or related methods to signal failure. To write a new test

go.dev
s › draft-fuzzing-design
3

Design Draft: First Class Fuzzing

module support, go command integration, and integration with new compiler instrumentation.ProposalSupport Fuzz functions in Go test files, making fuzzing a first class option for Go developers through unified, end-to-end support.RationaleOne…unit testing). Existing solutions add extra overhead such as custom command line tools, separate test files or build tags, lack of robust modules support, and lack of testing/customization support from the standard

pkg.go.dev
crypto › internal › cryptotest › wycheproof@go1.27.0
4

wycheproof package - crypto/internal/cryptotest/wycheproof - Go Packages

Package wycheproof provides helper utilities for writing tests that rely on Wycheproof test vector schemas and JSON vector data. See https://github.com/C2SP/wycheproof for more information. func LoadVectorFile(t *testing.T, filename string…value []byte) error This section is empty. This section is empty. LoadVectorFile unmarshals Wycheproof JSON test vector file by name. Typically, the value argument will be a pointer to a Wycheproof schema

go.dev
doc › devel › weekly.html
5

Weekly Snapshot History - The Go Programming Language

from public view. * test: put GOROOT/bin before all others in run. * time: fix Plan 9 build. (thanks Fazlul Shahriar) fix zone during windows test. * type switches: test…Brainman) * test(arm): disable zerodivide.go because compilation fails. * test(windows): disable tests that cause the build to fail (thanks Joe Poirier) * test/garbage/parser: sync with recent parser changes * test

go.dev
doc › tutorial › fuzz.html
6

Tutorial: Getting started with fuzzing - The Go Programming Language

introduces the basics of fuzzing in Go. With fuzzing, random data is run against your test in an attempt to find vulnerabilities or crash-causing inputs. Some examples of vulnerabilities that…denial of service and cross-site scripting attacks. In this tutorial, you’ll write a fuzz test for a simple function, run the go command, and debug and fix issues in the code

go.dev
cmd › go
7

go command - cmd/go - Go Packages

package list mode, 'go test' caches successful package test results to avoid unnecessary repeated running of tests. To disable test caching, use any test flag…functions ¶The 'go test' command expects to find test, benchmark, and example functions in the "*_test.go" files corresponding to the package under test. A test function

go.dev
design › 51430-revamp-code-coverage
8

Proposal: extend code coverage testing to include applications

reporting coverage data for Go unit tests; this facility is made available via the “go test -cover” and “go tool cover” commands.The current workflow for collecting coverage data is baked into “go…package or set of packages with associated tests.To request coverage data for a package test run, a user can invoke the test(s) via: go test -coverprofile= [package

go.dev
doc › tutorial › add-a-test.html
9

Add a test - The Go Programming Language

Documentation Tutorials Add a test Now that you've gotten your code to a stable place (nicely done, by the way), add a test. Testing your code during development…that find their way in as you make changes. In this topic, you add a test for the Hello function. Go's built-in support for unit testing makes it easier

go.dev
blog › cover
10

The cover story - The Go Programming Language

code as the build specification. The release of Go 1.2 introduces a new tool for test coverage that takes an unusual approach to the way it generates coverage statistics, an approach that…items build on each other, making the Go environment more productive by automating many tasks. Test coverage Test coverage is a term that describes how much of a package’s code