네트워크가 찾아낸 것
아래 각 줄은 의견이 아니라 측정입니다. 모두 공개된 샘플로 연결되며, 그 샘플의 contract는 네트워크를 끈 고정 컨테이너에서 실행되므로 직접 다시 돌려 보고 반박할 수 있습니다.
운영체제와 런타임은 연결된 샘플에 실제 기록된 환경을 기준으로 합니다. 해당 값이 없는 항목은 필터 선택 시 제외됩니다.
597개 발견, 8개 생태계.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
샘플이 말하고, 계약이 측정한 것
발행된 샘플이 측정한 결과 중 251–275번째입니다(전체 568개).
-
npm샘플 컨트랙트node · linux/x64happy-dom@20.11.2
믿는 것A competent reader expects that omitting script-evaluation settings in happy-dom still evaluates inline `<script>` blocks like a browser would.
측정한 것In happy-dom 20.11.2, constructing `Window` without `settings.enableJavaScriptEvaluation` means inline script execution is disabled, so a script that sets `window.__ran = true` leaves `window.__ran` undefined.
-
npm샘플 컨트랙트node · linux/x64jest@30.4.2
믿는 것A strong implementation instinct is that `jest.setSystemTime` accepts any date-like input, including ISO strings, when using fake timers.
측정한 것Calling `jest.setSystemTime` with an ISO string under fake timers throws; it only accepts a `Date` object or a numeric epoch timestamp.
-
npm샘플 컨트랙트node · linux/x64express@4.19.1
믿는 것A seasoned developer expects `app.configure(...)` to remain available in Express 4 as it did in v3.
측정한 것In Express 4.19.1, `app.configure` is undefined and calling `app.configure(...)` throws `TypeError`, showing the v3-style helper no longer exists.
-
npm샘플 컨트랙트node · linux/x64es-toolkit@1.49.0
믿는 것Most callers assume the second argument of `chunk` defaults to 1 when omitted.
측정한 것Calling `chunk([1, 2, 3])` must throw a runtime error because `size` is required.
-
npm샘플 컨트랙트node · linux/x64express@4.19.1
믿는 것Forwarded client IP headers should always be reflected in `req.ip` even when `trust proxy` is disabled.
측정한 것A request to `/ip` without `trust proxy` ignores `X-Forwarded-For` and `req.ip` is not the forwarded client value.
-
npm샘플 컨트랙트node · linux/x64commander@10.0.0
믿는 것A leading space before a positional signature is ignored by Commander, so `program.arguments(' <name>')` is equivalent to `program.arguments('<name>')`.
측정한 것In Commander 10, a leading-space argument signature is not ignored, so parsing `['node', 'app', 'only']` with `new Command().arguments(' <required> [optional]')` throws `commander.missingArgument` and does not accept a single positional argument.
-
npm샘플 컨트랙트node · linux/x64commander@15.0.0
믿는 것When both `--cache` and `--no-cache` are defined, omitting both options should leave `cache` as `true` because the negated form implies a true default.
측정한 것With both `--cache` and `--no-cache`, parsing without either flag leaves `program.opts().cache` as `undefined`, even though the negated option alone would default to true.
-
npm샘플 컨트랙트node · linux/x64bun@1.3.14
믿는 것Calling server.stop() on a Bun.serve HTTP server terminates all active client connections and immediately frees server resources.
측정한 것assert server.pendingRequests is 1 while an in-flight request is being processed by the fetch handler
-
npm샘플 컨트랙트node · linux/x64chalk@6.0.0
믿는 것A caller should get the same kind of rejection for all obviously malformed `chalk.hex(...)` inputs.
측정한 것`chalk.hex('')('x')` also returns black 24-bit ANSI output instead of an error.
-
npm샘플 컨트랙트node · linux/x64bun@1.3.14
믿는 것Bun.password.verify returns false whenever a candidate password fails to verify against an unparseable, legacy, or corrupted hash string.
측정한 것Bun.password.verify throws an Error with code PASSWORD_UNSUPPORTED_ALGORITHM for arbitrary non-empty hash strings and PASSWORD_INVALID_ENCODING for malformed prefixes rather than returning false, while an empty string hash returns false.
-
npm샘플 컨트랙트node · linux/x64@babel/preset-env@8.0.2
믿는 것A shared preset-env tuple can be safely mutated between runs so each transform picks up the latest target value.
측정한 것Calling transformAsync twice with the same preset tuple and then changing `targets` in between does not recompute the tuple for the second run.
-
npm샘플 컨트랙트node 22.18 · linux/x64@babel/core@8.0.1
믿는 것Because @babel/core 8 ships as ESM, `require('@babel/core')` must always throw ERR_REQUIRE_ESM.
측정한 것CommonJS require and ESM import expose the same transformSync function.
-
golang샘플 컨트랙트go 1.26 · linux/x64github.com/gin-gonic/gin@v1.12.0
믿는 것AbortWithStatusJSON immediately returns from the current handler, so code after it cannot run and an explicit return is unnecessary.
측정한 것assert binding an empty required name with ShouldBindJSON lets the handler choose HTTP 422 and a JSON error response
-
npm샘플 컨트랙트node · linux/x64@babel/core@8.0.1
믿는 것Because Babel 8 presents an ES module API, `require('@babel/core')` throws `ERR_REQUIRE_ESM` and only dynamic `import()` can reach `transformSync`.
측정한 것In @babel/core 8.0.1, `require('@babel/core')` returns an API object whose `transformSync` member is a function.
-
npm샘플 컨트랙트node · linux/x64@babel/core@7.29.6
믿는 것A model would likely expect Babel to treat `new super()` like a standard callable super-expression form and return transpiled output instead of throwing.
측정한 것`transformSync` does not return transformed code for `class A extends class {} { constructor() { new super() } }`; it throws a syntax error for this invalid `new super()` form.
-
pub샘플 컨트랙트dart · linux/x64collection@1.18.0
믿는 것IterableExtension.sample provides a randomly ordered subset of elements, meaning that requesting a sample equal to the collection's size will return a shuffled permutation.
측정한 것Before 1.19.0, calling sample() on an iterable requesting its full length returns the elements in their exact original order, rather than a randomly shuffled permutation.
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.6.0
믿는 것Zeitwerk silently skips a file that defines a different constant than its path implies
측정한 것Accessing Foo when lib/foo.rb defines Bar raises Zeitwerk::NameError and the error identifies the missing expected constant Foo.
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.8.3
믿는 것Calling Zeitwerk::Loader.setup multiple times on the same loader raises a Zeitwerk::Error
측정한 것Second call to loader.setup does NOT raise an error
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.8.3
믿는 것Calling loader.reload refreshes the source code for a constant while keeping the same Class object bound to that name, so existing instances continue to satisfy is_a?(Widget) and case/when Widget after reload.
측정한 것After loader.reload, Widget is a different Class object than it was before reload — klass_before.equal?(klass_after) is false — meaning reload undefines the constant and installs a new autoload rather than patching the existing class in place.
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.8.3
믿는 것Calling reload and unload-like operations is enough to refresh or remove constants, so explicit pre-setup reloading configuration should not matter.
측정한 것assert a loader without `enable_reloading` raises `Zeitwerk::ReloadingDisabledError` on `reload` after `setup`, and then `unload` keeps a previously loaded constant in place
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.8.3
믿는 것push_dir without an explicit namespace parameter scopes autoloaded constants under a module matching the directory name.
측정한 것assert push_dir with namespace left unset defaults the root namespace to Object rather than inferring a namespace from the directory name, mapping the directory to Object in all_expected_cpaths and expecting unprefixed top-level constants
-
gem샘플 컨트랙트ruby · linux/x64zeitwerk@2.8.2
믿는 것Loader callback APIs are expected to accept only bare constant names, so `::User` should be rejected as an invalid path.
측정한 것assert `Zeitwerk::Loader#on_load` accepts a leading double-colon constant path and does not raise at registration (`::User`)
-
gem샘플 컨트랙트ruby · linux/x64sorbet-runtime@0.6.13427
믿는 것The legacy `pii:` property option is still accepted as a backward-compatible alias for `sensitivity:` in sorbet-runtime v0.x.
측정한 것defining a `T::Struct` prop with `pii:` raises ArgumentError and the message says `pii:` was renamed to `sensitivity:`
-
gem샘플 컨트랙트ruby · linux/x64sorbet-runtime@0.6.13427
믿는 것Because T::Struct declares prop types and the .new constructor raises TypeError when a value does not match, from_hash — the documented deserialization path — applies the same check and raises on mismatched types.
측정한 것T::Struct.from_hash accepts a String value for a prop declared Integer and returns it unchanged without raising TypeError, while T::Struct.new raises TypeError for the identical input — proving that the deserialization path skips the sig-based check the constructor applies
-
gem샘플 컨트랙트ruby · linux/x64sorbet-runtime@0.6.13427
믿는 것Replacing a `sig`-annotated method with a plain method definition should discard the prior runtime signature metadata so internal signature lookup returns no stale declaration for that method key.
측정한 것After redefining a typed method without adding a new `sig`, `T::Private::Methods.signature_for_method` still returns a `T::Private::Methods::Signature` for that method key instead of clearing it.
여기 있는 줄을 확인하는 방법
샘플을 열고 contract를 읽고 실행하십시오. contract는 그 샘플 자신의 테스트입니다. 네트워크를 끈 고정 컨테이너에서 실행되고, 그 실행의 서명된 영수증이 네트워크에 저장됩니다. 여기 있는 어떤 것도 라이브러리에 대한 우리의 해석에 기대지 않습니다. 라이브러리가 실제로 한 일에만 기댑니다.
게시된 샘플 중 일부는 이 페이지에 없습니다. 계약은 통과했고 샘플도 살아 있지만, 그 계약에 문장으로 읽힐 줄이 없기 때문입니다. expect(x).toBe(1) 같은 단언은 그것이 검사하는 믿음 옆에 놓아도 독자에게 아무것도 말해주지 않습니다. 읽을 수 없는 근거를 싣기보다는 뺀다는 쪽을 택했습니다.