CodeSampleX

네트워크가 찾아낸 것

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

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

597개 발견, 8개 생태계.

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

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

  1. pub샘플 컨트랙트dart · linux/x64json_annotation@4.9.0

    믿는 것A model expects JsonSerializable.fromJson to accept camelCase Dart option names, unknownEnumValue to serve as a fallback when an enum field is null, and disallowNullValues to reject missing keys.

    측정한 것JsonSerializable.fromJson enforces snake_case option keys and disallowUnrecognizedKeys, throwing a CheckedFromJsonException with badKey true on camelCase Dart property names

  2. golang샘플 컨트랙트go · linux/x64github.com/goccy/go-yaml@v1.19.2

    믿는 것yaml.Unmarshal silently accepts duplicate mapping keys and overwrites earlier occurrences with later ones.

    측정한 것assert yaml.Unmarshal rejects duplicate mapping keys with a SyntaxError by default, leaving destination values empty

  3. pypi샘플 컨트랙트python · linux/x64cffi@2.0.0

    믿는 것Calling ffi.string with maxlen reads the full byte length regardless of null bytes, and ffi.buffer on a pointer defaults to the full allocated buffer length.

    측정한 것Calling ffi.string(cdata, maxlen) truncates at the first null byte rather than reading maxlen bytes, while ffi.unpack extracts the exact byte count across embedded nulls.

  4. pub샘플 컨트랙트dart · linux/x64http@1.6.0

    믿는 것Top-level HTTP convenience functions executed inside runWithClient reuse a shared ambient client instance without closing it after each request.

    측정한 것Top-level HTTP convenience functions inside runWithClient instantiate a client via the client factory and close it upon completion, causing subsequent requests on a singleton client factory to fail with ClientException.

  5. npm샘플 컨트랙트node · linux/x64typescript@5.9.3

    믿는 것TypeScript automatically elides type-only named imports and unused value imports during ECMAScript emit regardless of whether type keywords or verbatimModuleSyntax are configured.

    측정한 것When compilerOptions.verbatimModuleSyntax is enabled, importing a type without the type modifier fails type-checking with TS1484, and re-exporting a type without export type fails with TS1205, whereas type-only imports and inline type specifiers compile cleanly and are elided during emit.

  6. npm샘플 컨트랙트node · linux/x64vitest@3.2.7

    믿는 것mergeConfig replaces array options like test.include and test.reporters with override values and supports function config factories.

    측정한 것mergeConfig concatenates array options like test.include, test.exclude, and test.reporters rather than replacing them, appending override test filters to base patterns.

  7. pub샘플 컨트랙트dart · linux/x64convert@3.1.2

    믿는 것CodePage.encode and CodePage.decode silently replace unmapped characters or undefined bytes with fallback tokens rather than throwing FormatException.

    측정한 것CodePage.encode throws FormatException on unmapped characters unless configured with an in-range invalidCharacter byte, and CodePage.decode throws FormatException on undefined byte entries unless allowInvalid is set to true.

  8. npm샘플 컨트랙트node · linux/x64browserslist@4.28.8

    믿는 것passing custom usage statistics via opts.stats causes standard popularity queries like '> 10%' to automatically evaluate against the provided custom statistics

    측정한 것browserslist('> 10% in my stats') throws a BrowserslistError when opts.stats is omitted

  9. golang샘플 컨트랙트go · linux/x64github.com/go-playground/validator/v10@v10.30.3

    믿는 것Tagging a non-pointer struct field with validate:"required" causes validator.New().Struct() to reject an uninitialized zero-value struct.

    측정한 것validator.New() ignores validate:"required" on non-pointer struct fields and returns nil for zero-value structs, while validator.WithRequiredStructEnabled() causes validation to fail with a required tag error on the struct field.

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

    믿는 것A mounted sub-router configured with a custom notFoundHandler only handles its own 404s when no other parent routes match, allowing sibling or fallback routes in the parent Router to catch unhandled paths.

    측정한 것A parent Router falls through unmatched sub-paths to subsequent sibling routes when the mounted sub-router uses the default notFoundHandler, but halts and returns 404 when configured with a custom notFoundHandler.

  11. golang샘플 컨트랙트go · linux/x64github.com/spf13/pflag@v1.0.10

    믿는 것Enabling ParseErrorsWhitelist.UnknownFlags allows unrecognized flags to pass through without error while preserving all subsequent positional arguments in FlagSet.Args().

    측정한 것When ParseErrorsWhitelist.UnknownFlags is true, FlagSet.Parse on unknown flags without an equals sign silently consumes the following non-flag argument as the flag value, leaving Args empty rather than preserving the positional argument.

  12. golang샘플 컨트랙트go 1.26 · linux/x64google.golang.org/grpc@v1.83.0

    믿는 것A client can receive responses larger than 4MB without additional configuration because the default 4MB limit applies only to server request payloads, or by setting grpc.MaxCallSendMsgSize on the client.

    측정한 것When a gRPC server returns a 5MB payload to a client with default options, the server transmits it without error but the client fails to decode the response with status code ResourceExhausted because the default client-side receive limit is 4MB.

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

    믿는 것A shelf Cascade cascades to subsequent handlers on any 4xx or 5xx client or server error response by default.

    측정한 것Cascade defaults to cascading only on 404 and 405 status codes, requiring explicit statusCodes or shouldCascade configuration to cascade past 400 Bad Request, 401 Unauthorized, or 500 Internal Server Error responses.

  14. golang샘플 컨트랙트go · linux/x64go.uber.org/zap@v1.27.0

    믿는 것zap.Config.Build automatically resolves unregistered URI schemes to file paths or creates default sink wrappers for custom protocol schemes

    측정한 것zap.Config.Build fails with a 'no sink found for scheme' error when OutputPaths contains a URI scheme that has not been registered via zap.RegisterSink.

  15. golang샘플 컨트랙트go 1.26 · linux/x64github.com/gin-gonic/gin@v1.12.0

    믿는 것gin.Context implements context.Context so it automatically delegates Value, Deadline, and Done to the underlying http.Request context without extra configuration.

    측정한 것By default gin.Engine has ContextWithFallback disabled, causing gin.Context to return nil for all http.Request context values and ignore request deadlines and cancellation.

  16. pypi샘플 컨트랙트python · linux/x64pillow@10.4.0

    믿는 것Image.open checks image size limits only during pixel rasterization and raises a generic MemoryError rather than DecompressionBombError when pixels exceed Image.MAX_IMAGE_PIXELS.

    측정한 것Image.open eagerly raises PIL.Image.DecompressionBombError during header parsing when total pixels exceed twice Image.MAX_IMAGE_PIXELS without allocating pixel memory.

  17. pypi샘플 컨트랙트python · linux/x64anyio@4.13.0

    믿는 것Cancelling a task waiting on anyio.to_thread.run_sync cancels immediately without waiting for the synchronous thread, and setting abandon_on_cancel=True keeps worker thread concurrency strictly bounded by the CapacityLimiter.

    측정한 것With abandon_on_cancel=False, cancelling the calling scope blocks until the worker thread finishes running, whereas abandon_on_cancel=True exits the scope immediately while releasing the CapacityLimiter before the synchronous thread finishes.

  18. hex샘플 컨트랙트elixir · linux/x64decimal@3.1.1

    믿는 것Setting a Decimal context configuration applies across the application or automatically propagates to spawned child processes and tasks.

    측정한 것Decimal context is scoped to the calling process dictionary and is not inherited by spawned child tasks

  19. npm샘플 컨트랙트node · linux/x64vue@3.5.41

    믿는 것In production mode (NODE_ENV=production), an unhandled error thrown during Vue SSR component setup or rendering causes renderToString() to reject with the error.

    측정한 것In production mode, unhandled errors in component setup or rendering are suppressed and logged to console by default, causing renderToString to resolve with partial markup unless app.config.throwUnhandledErrorInProduction is set to true.

  20. pypi샘플 컨트랙트python · linux/x64tenacity@9.1.4

    믿는 것retry_unless_exception_type retries functions that raise unexpected exceptions while allowing successful returns to exit immediately without retrying.

    측정한 것retry_unless_exception_type treats successful return values as retryable states, retrying until stop exhaustion and raising RetryError with a successful last_attempt Future.

  21. gem샘플 컨트랙트ruby · linux/x64minitest@6.0.6

    믿는 것Calling parallelize_me! inside a test class always enables parallel test execution across worker threads or raises an error if threads cannot be allocated

    측정한 것When MT_CPU is 1 or less at load time, Minitest.parallel_executor is nil, causing parallelize_me! to leave test class run_order as :random without including Minitest::Parallel::Test, running tests synchronously on the main thread

  22. npm샘플 컨트랙트node · linux/x64jose@6.2.9

    믿는 것Setting maxTokenAge only limits allowable token age when an iat claim is present, falling back to exp expiration checking when iat is omitted.

    측정한 것jwtVerify with maxTokenAge configured rejects tokens lacking an iat claim with JWTClaimValidationFailed and reason 'missing' rather than falling back to exp validation.

  23. npm샘플 컨트랙트node · linux/x64rollup@4.34.8

    믿는 것A bare import with no specifiers, such as import './polyfill.js', is always retained during tree-shaking because it declares an intentional side effect with no unused bindings to eliminate.

    측정한 것Setting treeshake: { moduleSideEffects: false } causes Rollup to strip bare side-effect imports that have no consumed exports, whereas treeshake: { moduleSideEffects: 'no-external' } retains internal side-effect imports and strips unused external ones.

  24. golang샘플 컨트랙트go · linux/x64github.com/google/go-cmp@v0.7.0

    믿는 것Passing multiple cmp.Transformer or cmp.Comparer options for the same underlying type automatically evaluates them in order or restricts them to their intended struct context.

    측정한 것assert cmp.Diff panics with ambiguous set of applicable options when multiple transformers or comparers target the same type without path filters

  25. pypi샘플 컨트랙트python · linux/x64pyarrow@25.0.1

    믿는 것pyarrow.csv.read_csv parses tokens defined in null_values as null values across all columns regardless of inferred column data type.

    측정한 것CSV columns inferred as strings preserve tokens matching null_values as literal strings unless strings_can_be_null is explicitly set to True, whereas numeric columns convert them to nulls by default.

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

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

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