Search

By onsi

12 skills found.
Category:
Search results
#SkillRepositoryStarsUsed inTokensAuto-checkLicenceUpdated
1

Write correct synchronous Gomega assertions — Expect/Ω notation, the To/NotTo/ToNot/Should/ShouldNot equivalences, the multi-return error idiom, Succeed vs HaveOccurred, the .Error() chaining form…

onsi/gomega2.4k—~2.1kAutomated safety check: PassMIT15 days ago
2

Polling assertions in Gomega — Eventually (poll until it passes) and Consistently (must keep passing), the func(g Gomega) callback idiom, WithTimeout/WithPolling/Within/ProbeEvery, WithContext and…

onsi/gomega2.4k—~2.2kAutomated safety check: PassMIT15 days ago
3

Build compound Gomega assertions by combining matchers — And/SatisfyAll (all pass), Or/SatisfyAny (any pass), Not (negate), WithTransform to map the actual before matching, Satisfy for an ad-hoc…

onsi/gomega2.4k—~1.5kAutomated safety check: PassMIT15 days ago
4

Writing your own Gomega matchers — the GomegaMatcher interface (Match/FailureMessage/NegatedFailureMessage), gcustom.MakeMatcher with message templates and template data, the format package helpers…

onsi/gomega2.4k—~2.4kAutomated safety check: PassMIT15 days ago
5

Testing streaming io buffers with gbytes — gbytes.NewBuffer() (an io.Writer also returned by gexec sessions), the Say(regexp) matcher that forward-scans from a moving read cursor, the canonical…

onsi/gomega2.4k—~1.5kAutomated safety check: PassMIT15 days ago
6

Testing external processes with gexec — compile binaries with Build/BuildWithEnvironment/BuildIn and CleanupBuildArtifacts, start them with Start returning a Session, await exit with the Exit…

onsi/gomega2.4k—~1.3kAutomated safety check: PassMIT15 days ago
7

The ghttp test HTTP server for testing HTTP clients — NewServer/NewTLSServer, AppendHandlers, the Verify assertions (VerifyRequest/VerifyHeader/VerifyHeaderKV/VerifyJSON/VerifyForm/VerifyBasicAuth/Ve…

onsi/gomega2.4k—~2.2kAutomated safety check: PassMIT15 days ago
8

gleak goroutine leak detection — capture a Goroutines() snapshot before a test, then Eventually(Goroutines).ShouldNot(HaveLeaked(snapshot)) to assert none leaked, with the…

onsi/gomega2.4k—~1.5kAutomated safety check: PassMIT15 days ago
9

Benchmark and measure Go code with gmeasure — an Experiment groups named Measurements, recorded via RecordValue/RecordDuration/MeasureDuration or repeated Sample/SampleValue/SampleDuration with…

onsi/gomega2.4k—~2.2kAutomated safety check: PassMIT15 days ago
10

Deep, partial matching of nested structs, slices, maps, and pointers with gstruct — MatchAllFields/MatchFields/Fields, MatchAllElements/MatchElements/Elements (idFn), MatchAllKeys/MatchKeys/Keys…

onsi/gomega2.4k—~1.7kAutomated safety check: PassMIT15 days ago
11

The Gomega mental model for writing assertions in Go — the Expect/Ω notation, matchers-are-values, the multi-return error idiom, synchronous vs asynchronous (Eventually/Consistently) assertions, and…

onsi/gomega2.4k—~1.1kAutomated safety check: PassMIT15 days ago
12

The complete catalog of Gomega's built-in matchers, grouped by category — equivalence (Equal/BeEquivalentTo/BeComparableTo/BeIdenticalTo/BeAssignableToTypeOf), presence (BeNil/BeZero/BeEmpty)…

onsi/gomega2.4k—~2.1kAutomated safety check: PassMIT15 days ago