CodeSampleX

네트워크가 찾아낸 것

아래 각 줄은 의견이 아니라 측정입니다. 모두 공개된 샘플로 연결되며, 그 샘플의 contract는 네트워크를 끈 고정 컨테이너에서 실행되므로 직접 다시 돌려 보고 반박할 수 있습니다.

운영체제와 런타임은 연결된 샘플에 실제 기록된 환경을 기준으로 합니다. 해당 값이 없는 항목은 필터 선택 시 제외됩니다.

597개 발견, 8개 생태계.

샘플이 말하고, 계약이 측정한 것

발행된 샘플이 측정한 결과 중 226–250번째입니다(전체 568개).

  1. golang샘플 컨트랙트go · linux/x64gorm.io/gorm@v1.31.2

    믿는 것A conditional Preload filters root parent records and Joins can load a HasMany slice association in GORM 1.31.2.

    측정한 것assert Preload with a condition returns both parent records and leaves the nonmatching parent's child slice empty

  2. pypi샘플 컨트랙트python · linux/x64joblib@1.5.3

    믿는 것Passing mmap_mode='r' to joblib.load guarantees a numpy.memmap for compatible arrays, regardless of how the file was serialized.

    측정한 것joblib 1.5.3 loading a NumPy 2.5.2 array saved with compress=3 and mmap_mode='r' warns that memory mapping is incompatible with compression and returns an in-memory ndarray.

  3. pypi샘플 컨트랙트python 3.12 · linux/x64requests@2.34.2

    믿는 것Preparing a Request directly and sending it through a Session automatically applies that Session's headers, cookies, and REQUESTS_CA_BUNDLE setting.

    측정한 것assert Request.prepare omits Session default headers and cookies while Session.prepare_request applies both

  4. pub샘플 컨트랙트dart · linux/x64shelf@1.4.2

    믿는 것Mounting with `'/api'` only handles `/api/...` and should not match a request to `/api` itself.

    측정한 것A GET request to /api after app.mount('/api', subRouter.call) reaches the mounted sub-router root.

  5. pub샘플 컨트랙트dart · linux/x64equatable@2.1.0

    믿는 것Two generic Equatable instances with identical values are equal when one type argument is a subtype of the other, such as Box<num>(42) and Box<int>(42).

    측정한 것Two generic Equatable instances with identical values are not equal when type arguments differ across subtype boundaries, and their runtimeType-dependent hashCodes differ.

  6. pub샘플 컨트랙트dart · linux/x64collection@1.19.1

    믿는 것HeapPriorityQueue's unorderedElements property yields elements in priority-sorted order and PriorityQueue implements Iterable.

    측정한 것PriorityQueue does not implement Iterable, and HeapPriorityQueue.unorderedElements yields elements in internal binary heap storage order rather than priority-sorted order.

  7. pub샘플 컨트랙트dart · linux/x64args@2.7.0

    믿는 것ArgParser.addMultiOption treats each command-line argument value as a single list entry without splitting on internal commas.

    측정한 것addMultiOption splits comma-separated values into multiple entries by default, requiring splitCommas: false to preserve a single argument such as '--define env=prod,region=us-east' as ['env=prod,region=us-east'].

  8. npm샘플 컨트랙트node · linux/x64puppeteer@24.43.1

    믿는 것A developer might assume Puppeteer simply inherits the browsers-layer version value and prints the `@puppeteer/browsers` package version.

    측정한 것Running `node_modules/puppeteer/lib/cjs/puppeteer/node/cli.js --version` reports the Puppeteer package version and does not report `@puppeteer/browsers` version.

  9. npm샘플 컨트랙트node · linux/x64vitest@4.0.0

    믿는 것A mock created with vi.fn records zero-based invocation order values, so its first two calls are numbered 0 and 1.

    측정한 것assert two calls to one vi.fn mock produce mock.invocationCallOrder equal to [1, 2]

  10. pub샘플 컨트랙트dart · linux/x64args@2.7.0

    믿는 것ArgParser stops matching options at the first positional argument unless allowTrailingOptions is set to true.

    측정한 것ArgParser().parse(["data.bin", "--force"]) sets force to true and keeps only data.bin in rest because trailing options are enabled by default.

  11. npm샘플 컨트랙트node · linux/x64@rollup/plugin-commonjs@28.0.7

    믿는 것A strict plugin pass can still eagerly hoist conditional `node:` builtin requires into initialization code.

    측정한 것Bundling `if (false) { require('node:sqlite'); }` with `@rollup/plugin-commonjs` and `strictRequires: true` does not include `node:sqlite` in the generated CommonJS bundle.

  12. npm샘플 컨트랙트node · linux/x64puppeteer@24.4.0

    믿는 것Puppeteer's device and network presets are properties on the default export, device descriptors use mobile/touch keys, and network throughput values are kilobits per second.

    측정한 것Puppeteer 24.4.0 exposes KnownDevices and PredefinedNetworkConditions as named exports, not properties on its default export.

  13. npm샘플 컨트랙트node · linux/x64puppeteer@25.7.0

    믿는 것On current Puppeteer, page.screenshot() returns a Node.js Buffer, so calling result.toString('base64') uses Buffer's encoding overload.

    측정한 것TypeScript 5.9 accepts Puppeteer 25.7.0 page.screenshot() with default options as Uint8Array and rejects an encoding argument passed to Uint8Array.toString.

  14. golang샘플 컨트랙트go · linux/x64github.com/spf13/viper@v1.21.0

    믿는 것viper.GetStringSlice parses a comma-separated environment value into the same multi-element slice as viper.Unmarshal.

    측정한 것assert Unmarshal returns two elements for that same comma-separated environment value

  15. npm샘플 컨트랙트node · linux/x64bun@1.3.14

    믿는 것Bun.deepEquals treats a plain object with matching numeric indices and length as structurally equal to a TypedArray containing the same elements.

    측정한 것Bun.deepEquals returns false when comparing a numeric-keyed plain object to a Uint8Array with matching elements and length, verifying internal typed-array slots rather than only enumerable index properties

  16. npm샘플 컨트랙트node · linux/x64@babel/core@7.29.7

    믿는 것Loading @babel/core through createRequire from an ES module throws instead of returning the CommonJS API object.

    측정한 것assert createRequire can load @babel/core 7.29.7 from the ES module contract

  17. golang샘플 컨트랙트go · linux/x64sigs.k8s.io/yaml@v1.5.0

    믿는 것A scalar type mismatch reported by sigs.k8s.io/yaml.Unmarshal is opaque text that cannot be matched as json.UnmarshalTypeError with errors.As.

    측정한 것assert unmarshaling a: not_a_number into an int field returns a non-nil error

  18. pypi샘플 컨트랙트python 3.12 · linux/x64pydantic-settings@2.15.0

    믿는 것Pydantic BaseSettings reads nested environment variables using '__' as a delimiter by default.

    측정한 것assert a DATABASE__HOST environment variable is ignored for a nested model when env_nested_delimiter is not configured

  19. pypi샘플 컨트랙트python · linux/x64jinja2@3.1.6

    믿는 것Under StrictUndefined, undefined variables evaluate to falsy in boolean conditionals and fall back cleanly through the default filter on nested attributes.

    측정한 것Boolean evaluation of an undefined variable in an if condition raises UndefinedError under StrictUndefined instead of evaluating as falsy

  20. npm샘플 컨트랙트node · linux/x64jsdom@26.1.0

    믿는 것Two setState calls using the current state value will both increment the counter, resulting in a final state of 2

    측정한 것assert two sequential setCount(count + 1) calls in one React 18 concurrent-root update produce a final rendered state of 1

  21. pub샘플 컨트랙트dart · linux/x64crypto@3.0.6

    믿는 것Internal constructor invariants in package:crypto throw an ArgumentError or StateError on invalid configurations regardless of Dart runtime flags.

    측정한 것Instantiating HashSink with signatureBytes less than 8 bypasses checks and produces a digest in default mode, but throws AssertionError only when Dart is run with the --enable-asserts flag.

  22. pub샘플 컨트랙트dart · linux/x64args@2.7.0

    믿는 것ArgParser.parse() throws an exception immediately when a mandatory option is omitted from the provided arguments.

    측정한 것ArgParser.parse() completes successfully when a mandatory option is omitted, and the validation exception is only thrown later when the missing option is retrieved from the ArgResults object.

  23. npm샘플 컨트랙트node · linux/x64react@19.2.8

    믿는 것Rendering an element with an empty string attribute such as `<img src="">` keeps that attribute in `react-dom` server output.

    측정한 것assert `renderToString` removes an empty `src` attribute from `<img>` output

  24. npm샘플 컨트랙트node · linux/x64marked@18.0.9

    믿는 것As long as a `walkTokens` hook is declared `async`, Marked will apply its token mutations to output even when `async` is not enabled.

    측정한 것With a `walkTokens` function that mutates heading depth after awaiting, Marked renders `<h1>Heading</h1>` with `async` false, and `<h6>Heading</h6>` only when `async: true` is set.

  25. npm샘플 컨트랙트node · linux/x64luxon@3.7.2

    믿는 것A caller can create a local calendar date with `DateTime.local({ year, month, day })` because the signature appears to accept an object-based constructor form.

    측정한 것With `Settings.now` fixed, `DateTime.local({ year: 2024, month: 2, day: 14 })` returns a valid DateTime at the fixed current instant, showing that the object is treated as options and its unit fields are ignored.

여기 있는 줄을 확인하는 방법

샘플을 열고 contract를 읽고 실행하십시오. contract는 그 샘플 자신의 테스트입니다. 네트워크를 끈 고정 컨테이너에서 실행되고, 그 실행의 서명된 영수증이 네트워크에 저장됩니다. 여기 있는 어떤 것도 라이브러리에 대한 우리의 해석에 기대지 않습니다. 라이브러리가 실제로 한 일에만 기댑니다.

게시된 샘플 중 일부는 이 페이지에 없습니다. 계약은 통과했고 샘플도 살아 있지만, 그 계약에 문장으로 읽힐 줄이 없기 때문입니다. expect(x).toBe(1) 같은 단언은 그것이 검사하는 믿음 옆에 놓아도 독자에게 아무것도 말해주지 않습니다. 읽을 수 없는 근거를 싣기보다는 뺀다는 쪽을 택했습니다.