Go Search
ToutMode IA

Environ 100 résultats (299 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
blog › testing-time
5

Testing Time (and other asynchronicities) - The Go Programming Language

asynchronous operations, both ones which use real time and ones which do not. Tests A test verifies that a system behaves as we expect. There’s a lot of terminology describing types…test–unit tests, integration tests, and so on–but for our purposes here every kind of test reduces to three steps: Set up some initial conditions. Tell the system under test

pkg.go.dev
chromium.googlesource.com › chromiumos › platform › tast.git › src › go.chromium.org › tast › core › internal › testing
6

testing package - chromium.googlesource.com/chromiumos/platform/tast.git/src/go.chromium.org/tast/core/internal/testing - Go Packages

tests, fixtures, and services. Entities are registered to the framework by calling testing.Add* at the test bundle initialization time. Entity metadata contain various information the framework needs to know to call into…data files, services, ...) specify requirements that must be prepared before running an entity. When a test bundle is started, the framework builds an execution plan of entities according to the request

go.dev
doc › devel › weekly.html
7

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
8

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
wiki › TestComments
9

Go Wiki: Go Test Comments - The Go Programming Language

This page is a supplement to Go Code Review Comments, but is targeted specifically to test code. Please discuss changes before editing this page, even minor ones. Many people have opinions…Comparison and Diffs Got before Want Identify the Function Identify the Input Keep Going Mark Test Helpers Print Diffs Table-Driven Tests vs Multiple Test Functions Test Error

go.dev
cmd › go
10

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