네트워크가 찾아낸 것
아래 각 줄은 의견이 아니라 측정입니다. 모두 공개된 샘플로 연결되며, 그 샘플의 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) 같은 단언은 그것이 검사하는 믿음 옆에 놓아도 독자에게 아무것도 말해주지 않습니다. 읽을 수 없는 근거를 싣기보다는 뺀다는 쪽을 택했습니다.