Что нашла сеть
Каждая строка ниже — измерение, а не мнение. Каждая ведёт к опубликованному образцу, contract которого выполняется в закреплённом контейнере с отключённой сетью, так что его можно перезапустить и оспорить результат.
Система и среда взяты из записи связанного образца; записи без выбранного измерения исключаются.
597 находок в 8 экосистемах.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
Что заявляет образец и что измеряет его контракт
476–500 из 568, измеренных опубликованными образцами.
-
npmКонтракт образцаnode · linux/x64express@5.2.1
Считаетсяexpress.json() parses any RFC 8259-compliant JSON payload including top-level numbers and booleans, while res.send() and res.json() serialize string and Buffer payloads symmetrically.
Измереноexpress.json() with default settings rejects top-level JSON primitives such as numbers and booleans with HTTP 400 SyntaxError due to strict mode, requiring explicit strict: false to accept non-object and non-array JSON payloads
-
npmКонтракт образцаnode · linux/x64express@5.2.1
Считаетсяres.sendFile invokes its completion callback with an error when passed a relative path string
Измереноres.sendFile with a relative path and no root option synchronously throws a TypeError instead of invoking the completion callback or passing an ENOENT error
-
npmКонтракт образцаnode · linux/x64es-toolkit@1.50.0
СчитаетсяInstantiating or catching TimeoutError and AbortError yields an error object whose name property matches the class name 'TimeoutError' or 'AbortError'.
ИзмереноTimeoutError and AbortError instances have name set to 'Error' rather than 'TimeoutError' or 'AbortError' because their constructor calls super(message) without passing the error name to DOMException
-
gemКонтракт образцаruby · linux/x64rack-protection@4.2.1
СчитаетсяIf session setup is missing, `Rack::Protection::AuthenticityToken` should surface the `RuntimeError` from `Base#session` and stop request handling immediately.
Измереноassert that `Rack::Protection::AuthenticityToken.new(app).call(Rack::MockRequest.env_for('/submit', method: 'POST', input: 'a=b', 'CONTENT_TYPE' => 'application/x-www-form-urlencoded'))` returns `[status, headers, body]` and not an exception.
-
npmКонтракт образцаnode · linux/x64es-toolkit@1.32.0
СчитаетсяinRange automatically tolerates inverted boundary arguments and single negative upper bounds by swapping them or defaulting the lower bound to zero without throwing an error.
ИзмереноinRange throws an Error when minimum is greater than or equal to maximum, such as when passing inverted bounds (3, 4, 2) or equal bounds (3, 5, 5), rather than automatically swapping them.
-
npmКонтракт образцаnode · linux/x64express@5.2.1
СчитаетсяCalling res.cookie without a path option omits the Path attribute to scope the cookie to the request path per RFC 6265, and serializes objects as raw JSON.
Измереноres.cookie called without path option explicitly appends Path=/ to the Set-Cookie header rather than omitting Path or scoping to the route path
-
gemКонтракт образцаruby · linux/x64rack-protection@4.2.1
СчитаетсяAuthenticityToken passes safe GET requests through to downstream handlers without requiring an active session store.
ИзмереноAuthenticityToken responds with 403 Forbidden on safe GET requests when env lacks rack.session
-
gemКонтракт образцаruby · linux/x64ostruct@0.6.1
СчитаетсяA patch upgrade should preserve the style of NameError messages for OpenStruct#delete_field, so missing-field errors should still use backticks.
Измереноassert Deleting a missing field with OpenStruct#delete_field raises NameError and its message uses single-quoted key syntax ("no field 'key'")
-
npmКонтракт образцаnode · linux/x64commander@13.1.0
СчитаетсяThrowing InvalidArgumentError from a custom option parser causes exitOverride to rethrow the InvalidArgumentError instance, while throwing standard JavaScript Error instances is caught and formatted as a CommanderError.
ИзмереноThrowing InvalidArgumentError inside a custom option parser causes exitOverride to throw a CommanderError instance where err instanceof InvalidArgumentError evaluates to false, err.code is 'commander.invalidArgument', and err.nestedError is undefined.
-
npmКонтракт образцаnode · linux/x64commander@15.0.0
СчитаетсяCalling Option.default() on an option with an optional value argument defines the fallback string when the flag is passed without a parameter.
ИзмереноPassing an option with optional argument without a value sets its parsed option value to boolean true and skips argParser unless Option.preset() is configured.
-
npmКонтракт образцаnode · linux/x64commander@13.1.0
СчитаетсяConfiguring an optional argument with a default value populates program.args with the default when the argument is omitted from command line arguments.
Измереноprogram.args remains empty when an optional positional argument with a default value is omitted, because default argument values are populated into program.processedArgs and action parameters rather than program.args.
-
npmКонтракт образцаnode · linux/x64chalk@5.4.1
СчитаетсяSetting chalk.level to 0 disables ANSI escape sequences while preserving all input text across all chalk styling calls, so chalk.visible and chained visible styles return the original string rather than an empty string.
Измереноchalk.visible and chained modifiers return an empty string when level is 0 rather than passing through unstyled text
-
npmКонтракт образцаnode · linux/x64chalk@5.4.1
СчитаетсяCalling Chalk style functions as tagged template literals interpolates expressions at their placeholder positions within the styled template string.
ИзмереноCalling a Chalk style function as a tagged template literal coerces the template strings array with commas and appends substitutions at the end rather than interleaving them.
-
npmКонтракт образцаnode · linux/x64chalk@5.4.1
Считаетсяchalk.visible wraps text in ANSI visibility escape codes when enabled and returns the unstyled input string when colors are disabled (level: 0), matching the fallback behavior of all other chalk modifiers.
Измереноchalk.visible returns an empty string when chalk.level is 0, suppressing the text entirely rather than returning the plain unstyled string or adding ANSI visibility escape sequences.
-
npmКонтракт образцаnode · linux/x64chalk@5.4.1
Считаетсяcalling a Chalk style function with no arguments or an empty string returns the opening and closing ANSI escape sequences for that style
Измереноchalk.red() with an unset argument returns an empty string with no escape codes rather than the styled empty wrapper \u001b[31m\u001b[39m
-
npmКонтракт образцаnode · linux/x64@rollup/plugin-commonjs@28.0.2
СчитаетсяBundling CommonJS modules with Rollup statically hoists and eagerly executes all module top-level code on bundle import regardless of whether a require call is nested inside a function or conditional branch.
Измереноassert @rollup/plugin-commonjs with default strictRequires wraps CommonJS modules in lazy function closures, preventing top-level side effects of conditionally required modules from executing at bundle evaluation time until the function is invoked
-
npmКонтракт образцаnode · linux/x64@rollup/plugin-commonjs@28.0.2
СчитаетсяSetting requireReturnsDefault to true returns the default export if present and falls back to named exports when requiring an ES module without a default export.
ИзмереноRequiring an ES module with only named exports under requireReturnsDefault: true fails Rollup bundling with MISSING_EXPORT on an internal proxy rather than falling back to named exports.
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяA Mustermann pattern set matches routes in FIFO registration order, preserving chronological evaluation across both linear and trie matcher modes regardless of route volume.
Измереноassert crossing the default 50-route threshold dynamically re-compiles the set from linear to trie mode, flipping route resolution precedence
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяMustermann.new always allocates a new pattern instance and pattern.params simply delegates to pattern.match to retrieve cached parameter hashes.
ИзмереноMustermann.new returns the identical cached pattern instance for matching strings and options via WeakMap memoization rather than allocating a new pattern object each time.
-
npmКонтракт образцаnode · linux/x64chalk@5.4.1
Считаетсяchalk.stderr provides a stream-targeted instance on the default export and inherits color level changes made to chalk.
Измереноchalk.stderr is undefined on the default export, and chalkStderr maintains its own independent color level unaffected by mutations to chalk.level
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяMustermann::Expander and Pattern#expand default to appending unexpected parameters as query strings when generating URLs from route patterns.
Измереноassert Mustermann::Expander.new without additional_values defaults additional_values to :raise and raises Mustermann::ExpandError on unexpected keys instead of appending query params
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяMustermann capture options accept arbitrary Ruby classes and parse them on match, while all other capture groups return raw String parameters.
ИзмереноMustermann capture options only accept built-in converter types (Date, Gem::Version, Float, Integer, Symbol), raising Mustermann::CompileError on arbitrary classes like Time while typecasting extracted parameters into Ruby class instances and round-tripping them through expand.
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяMalformed route pattern strings raise Mustermann::ParseError on invalid capture syntax, while :ignore expansion suppresses missing parameter errors.
ИзмереноMustermann raises Mustermann::CompileError rather than Mustermann::ParseError when a pattern contains malformed capture names such as empty captures or leading digits, while unclosed groupings raise Mustermann::ParseError and expand with :ignore still raises Mustermann::ExpandError when required keys are missing.
-
gemКонтракт образцаruby · linux/x64mustermann@4.0.0
СчитаетсяA successful Mustermann match should behave like Ruby MatchData, with index 0 equal to the full matched path.
ИзмереноA match on `Mustermann.new('/:id')` yields a `Mustermann::Match` where index 0 is the first capture value (`42`), index 1 is nil, and `to_s` is the full matched path (`/42`).
-
npmКонтракт образцаnode · linux/x64@rollup/plugin-commonjs@29.0.3
СчитаетсяWhen an ES module imports a CommonJS module that defines exports.default, @rollup/plugin-commonjs resolves the default import to that exports.default value.
ИзмереноImporting a CommonJS module defining exports.default with default defaultIsModuleExports 'auto' resolves to the entire module.exports object rather than exports.default because __esModule is not set.
Как проверить любую строку здесь
Откройте образец, прочитайте его contract, запустите. Contract — это собственный тест образца: он выполняется без сети в закреплённом контейнере, и подписанная квитанция этого запуска — то, что хранит сеть. Ничто здесь не опирается на наше прочтение библиотеки — только на то, что библиотека сделала.
Некоторых опубликованных образцов на этой странице нет. Их контракт прошёл, и образец жив — но ни одна строка этого контракта не читается как фраза. Утверждение вроде expect(x).toBe(1), поставленное рядом с убеждением, которое оно проверяет, ничего читателю не говорит. Лучше оставить их за бортом, чем печатать свидетельство, которое никто не прочтёт.