Ce que le réseau a trouvé
Chaque ligne ci-dessous est une mesure, pas un avis. Chacune renvoie à un échantillon publié dont le contract s'exécute dans un conteneur épinglé, réseau coupé : vous pouvez le rejouer et contredire le résultat.
Le système et le runtime viennent de l'environnement enregistré par l'échantillon ; les dimensions absentes sont exclues.
597 constats sur 8 écosystèmes.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
Énoncé par l'échantillon, mesuré par son contrat
26–50 sur 568, mesurés par des échantillons publiés.
-
golangContrat d'échantillongo · linux/x64github.com/mattn/go-isatty@v0.0.20
On croitisatty.IsTerminal and isatty.IsCygwinTerminal inspect terminal and shell environment variables such as TERM or CYGWIN to determine or override terminal detection for redirected descriptors
Mesuréisatty.IsTerminal evaluates file descriptors via OS ioctl/syscall and returns false for files and pipes regardless of whether TERM is configured to xterm-256color or another terminal type.
-
golangContrat d'échantillongo · linux/x64github.com/jackc/pgpassfile@v1.0.0
On croitParsePassfile returns a parsing error when encountering unescaped colons in password fields or parses them as part of the password field.
MesuréParsePassfile silently discards lines with unescaped colons in password fields rather than returning an error or preserving colons, causing FindPassword to return an empty string.
-
golangContrat d'échantillongo · linux/x64github.com/dustin/go-humanize@v1.0.1
On croitFormatInteger with an empty format string or "#,###" formats an integer with comma thousands grouping and no decimal places
Mesuréhumanize.FormatInteger with an empty format string returns "12,345.00" rather than "12,345" because it delegates to FormatFloat with the default two-decimal template.
-
pypiContrat d'échantillonpython · linux/x64joblib@1.5.3
On croitConfiguring parallel_config with prefer='threads' and n_jobs=4 executes subsequent unparameterized Parallel calls across 4 worker threads.
MesuréSetting prefer='threads' in parallel_config with n_jobs=4 switches to ThreadingBackend but silently resets implicit n_jobs in context to 1, while explicit backend='threading' preserves n_jobs=4.
-
golangContrat d'échantillongo · linux/x64github.com/stretchr/testify@v1.11.1
On croitA testify suite always executes its SetupSuite and TearDownSuite hooks whenever suite.Run is called, even when the testify.m flag filters out all test methods.
MesuréSetting the testify.m flag to a regular expression filters executed test methods and their per-test lifecycle hooks, and skips suite-level SetupSuite and TearDownSuite entirely when zero methods match.
-
golangContrat d'échantillongo · linux/x64github.com/Microsoft/go-winio@v0.6.2
On croitguid.FromString parses standard Windows registry GUID strings with braces or unhyphenated hex, and ToWindowsArray produces standard RFC 4122 big-endian byte ordering.
Mesuréguid.GUID.ToWindowsArray encodes Data1, Data2, and Data3 in little-endian order while preserving Data4, differing from standard RFC 4122 big-endian layout.
-
golangContrat d'échantillongo · linux/x64golang.org/x/sys@v0.30.0
On croitexecabs.LookPath and execabs.Command resolve and execute bare command names from relative directories when PATH contains '.' or a relative path
Mesuréexecabs.LookPath fails with an error and returns an empty string when PATH lookup resolves a bare command name to an executable in the current working directory, and execabs.Command immediately populates cmd.Err to prevent execution.
-
npmContrat d'échantillonnode · linux/x64fast-xml-parser@5.11.0
On croitXMLParser automatically creates an Array for repeated schema elements regardless of whether the document contains one or multiple child tags.
MesuréXMLParser parses single-child elements into plain objects rather than 1-element arrays by default, causing array methods like map to throw TypeError, unless the isArray callback explicitly returns true for the tag or jPath.
-
npmContrat d'échantillonnode · linux/x64three@0.185.1
On croitReturning false from an Object3D.traverse callback aborts traversal or skips subtrees, and child node mutations during traversal are safely handled.
MesuréObject3D.traverse executes a pre-order depth-first traversal across all descendants and ignores boolean return values from callbacks, continuing traversal without early abort or subtree pruning.
-
npmContrat d'échantillonnode · linux/x64three@0.185.1
On croitImageUtils.sRGBToLinear preserves alpha channel transparency untouched when converting canvas ImageData, and Lut maps color gradients bottom-up.
MesuréImageUtils.sRGBToLinear extracts canvas pixel data via CanvasRenderingContext2D.getImageData and applies the sRGB-to-linear conversion curve across all 4 channels, transforming translucent alpha values rather than preserving alpha intact.
-
npmContrat d'échantillonnode · linux/x64three@0.185.1
On croitBufferAttribute.getX indexes raw flat array offsets, divides Int8Array values symmetrically by 128, and modifies Float32Array values when normalized is true.
MesuréBufferAttribute.getX multiplies the passed index by itemSize to access the first component of that logical vertex, rather than accessing the flat array offset directly.
-
npmContrat d'échantillonnode · linux/x64react@18.3.1
On croitReact useId accepts a prefix string parameter to customize generated element IDs and produces unescaped CSS-compatible selector strings.
MesuréuseId returns colon-delimited strings like :R0: that ignore any prefix arguments passed to the hook and cannot be used directly in unescaped CSS ID selectors.
-
npmContrat d'échantillonnode · linux/x64react@18.3.1
On croitstartTransition accepts async callbacks and returns a Promise tracking the pending transition, maintaining transition batching across await boundaries.
MesuréstartTransition returns undefined synchronously even when passed an async callback, and restores the transition batch config to null before any post-await microtasks run.
-
cargoContrat d'échantillonrust · linux/x64regex@1.13.1
On croitRegexBuilder compiles any syntactically valid regular expression into memory without size constraints and supports standard octal escape sequences by default.
MesuréRegexBuilder::size_limit restricts the compiled regex memory footprint, returning Error::CompiledTooBig with the configured limit when exceeded rather than panicking or truncating the pattern.
-
pypiContrat d'échantillonpython · linux/x64jinja2@3.1.6
On croita template string ending with a newline will render with that newline intact by default
MesuréEnvironment().from_string('hello\n').render() returns 'hello' rather than 'hello\n', because the default is to strip exactly one trailing newline.
-
npmContrat d'échantillonnode · linux/x64pino@9.14.0
On croitA mixin function that returns a shared object safely adds those properties to the log record while leaving the shared object unmodified.
Mesuréreturning a shared object from mixin() results in that object being mutated with the properties of the logged payload, causing subsequent log entries to inherit those properties.
-
golangContrat d'échantillongo · linux/x64github.com/spf13/cobra@v1.9.1
On croitLocal flags declared on a parent command are parsed when specified before a subcommand name on the command line.
MesuréBy default with TraverseChildren false, passing a parent local flag before a subcommand name fails with an unknown flag error because all preceding flags are evaluated in the child command context.
-
npmContrat d'échantillonnode · linux/x64marked@13.0.2
On croitReturning undefined from a custom marked renderer method falls back to the default renderer rather than suppressing output.
MesuréReturning undefined from a custom renderer method produces an empty string rather than delegating to the default renderer, which requires returning explicit boolean false.
-
npmContrat d'échantillonnode · linux/x64happy-dom@20.11.2
On croitEvaluating scripts in a GlobalWindow executes in an isolated window context where bare window and document identifiers resolve to the instance.
MesuréDOM scripts evaluated in GlobalWindow run in host globalThis without a VM context, causing unqualified window references to throw ReferenceError rather than resolving the window instance
-
npmContrat d'échantillonnode · linux/x64happy-dom@20.11.2
On croitreadAsString() and read() inspect captured virtual console logs non-destructively without clearing the internal buffer until an explicit clear() invocation.
MesuréVirtualConsolePrinter.read() and readAsString() destructively drain the internal log buffer upon invocation, causing subsequent immediate reads to return empty results.
-
npmContrat d'échantillonnode · linux/x64minimatch@10.1.1
On croitslashless glob patterns match file basenames at any directory depth when filtering path arrays
Mesuréminimatch.filter generates a curried predicate function for Array.prototype.filter where slashless patterns match root paths by default and match base filenames across directories when matchBase is enabled
-
npmContrat d'échantillonnode · linux/x64minimatch@10.1.1
On croitminimatch.escape prefixes backslashes before all special characters including Windows path separators and braces
Mesuréminimatch.escape wraps wildcard and grouping characters in single-character classes rather than prefixing backslashes when windowsPathsNoEscape is enabled, preserving backslash directory separators while leaving braces unescaped unless magicalBraces is set
-
npmContrat d'échantillonnode · linux/x64fast-glob@3.3.3
On croitfg.sync with stats: true returns string path arrays unless objectMode is explicitly requested, flat basename patterns never match nested directories, and pattern array order changes negative pattern filtering.
Mesuréfg.sync with stats: true automatically produces an array of Entry objects containing fs.Stats and Dirent instances without requiring objectMode: true.
-
golangContrat d'échantillongo · linux/x64github.com/caddyserver/caddy/v2@v2.11.4
On croitA bare numeric address like "8080" configures listening port 8080, and URI schemes like "tcp://localhost:2019" parse as standard TCP addresses.
Mesurécaddy.ParseNetworkAddress("8080") parses 8080 as the hostname with StartPort 0, while ":8080" is required to configure port 8080.
-
pypiContrat d'échantillonpython · linux/x64requests@2.34.2
On croitCustom transport adapters receive allow_redirects directly in send() kwargs and must handle redirect following themselves.
MesuréBaseAdapter.send is an unimplemented interface method that raises NotImplementedError, requiring custom adapters to supply transport execution.
Comment vérifier n'importe quelle ligne
Ouvrez l'échantillon, lisez son contract, exécutez-le. Le contract est le test propre à l'échantillon : il tourne hors réseau dans un conteneur épinglé, et c'est le reçu signé de cette exécution que le réseau conserve. Rien ici ne repose sur notre lecture d'une bibliothèque, seulement sur ce qu'elle a fait.
Certains échantillons publiés ne figurent pas sur cette page. Leur contrat est passé et l'échantillon est en ligne, mais aucune ligne de ce contrat ne se lit comme une phrase. Une assertion comme expect(x).toBe(1), placée à côté de la croyance qu'elle vérifie, n'apprend rien au lecteur. Nous préférons les omettre plutôt que publier une preuve que personne ne peut lire.