CodeSampleX

네트워크가 찾아낸 것

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

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

597개 발견, 8개 생태계.

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

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

  1. gem샘플 컨트랙트ruby · linux/x64mustermann@4.0.0

    믿는 것Mustermann pattern matching always requires full string matches, and string interpolation of pattern objects safely preserves named parameter boundaries without altering AST capture names.

    측정한 것Mustermann patterns anchored to string boundaries return nil on subpaths when using match or params, but peek_params performs unanchored prefix matching and returns both extracted params and the consumed character offset for stepwise sub-routing.

  2. golang샘플 컨트랙트go · linux/x64github.com/go-chi/chi/v5@v5.3.1

    믿는 것middleware.Timeout enforces a hard wall-clock timeout by asynchronously aborting the handler and returning 504 Gateway Timeout even if the handler blocks or writes data.

    측정한 것When a handler cooperatively returns upon ctx.Done() without writing to ResponseWriter, middleware.Timeout writes HTTP 504 StatusGatewayTimeout with an empty body.

  3. gem샘플 컨트랙트ruby · linux/x64set@1.1.3

    믿는 것Set#<=> provides a total ordering across any sets so arrays of sets can be sorted with Array#sort.

    측정한 것Set#<=> returns nil when neither set is a subset of the other, which causes Array#sort on incomparable sets to raise ArgumentError.

  4. pypi샘플 컨트랙트python · linux/x64six@1.17.0

    믿는 것six.b encodes any text to bytes and accepts existing bytes idempotently, six.u coerces bytes to str, and six.byte2int coerces integer inputs while defaulting empty bytes to zero

    측정한 것six.b strictly encodes strings using latin-1 raising UnicodeEncodeError on code points above 255 and AttributeError on existing bytes rather than coercing via UTF-8 or acting idempotently

  5. pypi샘플 컨트랙트python · linux/x64six@1.17.0

    믿는 것Accessing moved attributes on six.moves or its classes returns the descriptor or resolved object identically without mutating class state, and six.remove_move cleans up import hooks alongside attribute access

    측정한 것Accessing an attribute on six.moves or its lazy namespaces resolves the target, caches it in the instance dictionary, and deletes the lazy descriptor from the class dictionary, making class-level attribute access fail with AttributeError

  6. golang샘플 컨트랙트go · linux/x64go.opentelemetry.io/otel/sdk@v1.45.0

    믿는 것resource.Merge returns a nil Resource pointer when encountering an ErrSchemaURLConflict between resources with different schema URLs.

    측정한 것resource.Merge with conflicting non-empty schema URLs returns a non-nil Resource with SchemaURL set to empty string alongside ErrSchemaURLConflict while merging attributes

  7. golang샘플 컨트랙트go · linux/x64go.opentelemetry.io/otel@v1.28.0

    믿는 것Extracting from a request with multiple traceparent headers ignores them completely as mandated by the W3C Trace Context specification.

    측정한 것Extracting from a HeaderCarrier with two traceparent headers yields the SpanContext of the first header rather than an invalid, empty context.

  8. pypi샘플 컨트랙트python · linux/x64six@1.17.0

    믿는 것six.reraise(tp, value, tb) accepts a string message as value and instantiates tp(value) like Python 2's raise statement, and six.raise_from(exc, None) retains implicit exception context.

    측정한 것six.reraise requires value to be an exception instance or None and raises AttributeError when passed a string message, unlike Python 2 raise syntax

  9. pypi샘플 컨트랙트python · linux/x64six@1.17.0

    믿는 것six.int2byte raises standard built-in ValueError or TypeError for invalid integer inputs like Python 2 chr() or Python 3 bytes constructor, and six.remove_move raises KeyError for nonexistent moves

    측정한 것six.int2byte raises struct.error rather than built-in ValueError or TypeError when passed out-of-range integers or non-integer types because it is implemented via struct.Struct.pack in Python 3

  10. pypi샘플 컨트랙트python · linux/x64pydantic@2.13.4

    믿는 것Pydantic models validate and coerce all field defaults against annotated types and constraints during default instantiation.

    측정한 것Leaving validate_default unset defaults to False: uncoerced string defaults remain raw strings and constraint-violating defaults are assigned directly without validation errors.

  11. pypi샘플 컨트랙트python · linux/x64pydantic@2.13.4

    믿는 것Serializing a Pydantic model to JSON and parsing it back with model_validate_json preserves the original plaintext secret or raises a validation error.

    측정한 것model_dump_json masks SecretStr and SecretBytes to asterisks, and subsequent model_validate_json silently parses the mask string as the new secret value instead of preserving the secret or raising an error.

  12. golang샘플 컨트랙트go · linux/x64go.opentelemetry.io/otel/sdk@v1.45.0

    믿는 것Capacity limits on a span apply a uniform dropping strategy, meaning both attributes and events would drop the newest entries or both would drop the oldest entries.

    측정한 것When AttributeCountLimit is 3 and five attributes are added in order a0…a4, span.Attributes() contains exactly the first three (a0, a1, a2), not the last three — new arrivals are silently dropped, not old ones.

  13. pypi샘플 컨트랙트python · linux/x64pydantic@2.13.4

    믿는 것Passing a set of field names like {'members': {'secret'}} to model_dump(exclude=...) excludes that field from each nested model in a sequence.

    측정한 것Passing a bare field set like {'members': {'secret'}} to model_dump(exclude=...) silently leaves secrets present in nested sequence elements because collection keys represent item indices rather than attribute names.

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

    믿는 것ArgResults returns an isolated or unmodifiable list for multi-option default values on each parse rather than sharing a mutable reference to the parser's internal default list.

    측정한 것ArgResults.multiOption returns the exact mutable defaultsTo list instance stored in Option without copying, causing identical() to return true across distinct parse calls and leaking in-place mutations into subsequent parses.

  15. npm샘플 컨트랙트node · linux/x64react@18.3.1

    믿는 것startTransition defers callback execution asynchronously or returns a Promise that keeps async continuations within the transition context.

    측정한 것startTransition executes its callback synchronously on the calling thread, returns undefined rather than a Promise, and resets ReactCurrentBatchConfig.transition to null immediately before returning so asynchronous continuations run outside the transition context.

  16. golang샘플 컨트랙트go · linux/x64go.opentelemetry.io/otel/sdk@v1.24.0

    믿는 것ParentBased(NeverSample()) disables span sampling across all spans created by the TracerProvider

    측정한 것ParentBased(NeverSample()) samples and exports child spans when the context contains a sampled remote parent, because ParentBased delegates sampled remote parents to AlwaysSample() by default rather than the configured root sampler.

  17. golang샘플 컨트랙트go · linux/x64go.opentelemetry.io/otel/sdk@v1.37.0

    믿는 것AlwaysSample().Description() returns "AlwaysSample" and NeverSample().Description() returns "NeverSample" matching their Go constructor identifiers

    측정한 것AlwaysSample().Description() returns "AlwaysOnSampler" and NeverSample().Description() returns "AlwaysOffSampler" using OpenTelemetry specification names rather than Go constructor names

  18. pypi샘플 컨트랙트python · linux/x64httpx@0.28.1

    믿는 것Subclassing Auth to inspect streaming request bodies or handle 401 challenge retries can be done by accessing request.content directly or yielding requests without explicit body buffering flags, and Authorization headers are automatically retained across all followed redirects.

    측정한 것Accessing request.content on streaming requests inside auth_flow raises RequestNotRead unless requires_request_body is set to True

  19. pypi샘플 컨트랙트python · linux/x64httpx@0.28.1

    믿는 것Converting Headers and QueryParams to standard Python dictionaries preserves all multi-value items or maps duplicate keys to lists.

    측정한 것Converting Headers to a standard dictionary collapses duplicate header keys into a single comma-delimited string rather than preserving discrete wire occurrences or lists.

  20. pypi샘플 컨트랙트python · linux/x64httpx@0.28.1

    믿는 것Joining a relative path to an httpx.URL always appends to the full path prefix of the base URL

    측정한 것httpx.URL.join on a base path lacking a trailing slash replaces the final path segment rather than appending to it

  21. npm샘플 컨트랙트node · linux/x64@babel/preset-env@7.26.0

    믿는 것isPluginRequired accepts shorthand target versions such as chrome '80' matching Babel configuration presets, and returns false when targets is empty since no target platforms require compilation.

    측정한 것isPluginRequired throws a semver validation error when targets specifies a non-triplet version like '80' while support data allows '79', returns false when target version 80.0.0 meets support version 79, and returns true when targets is empty or includes unspecified environments.

  22. pypi샘플 컨트랙트python · linux/x64httpx@0.28.1

    믿는 것httpx.InvalidURL inherits from httpx.HTTPError and catching httpx.HTTPError catches URL formatting errors

    측정한 것httpx.InvalidURL inherits directly from builtins.Exception rather than httpx.HTTPError or httpx.RequestError, so catching httpx.HTTPError fails to catch URL validation failures.

  23. npm샘플 컨트랙트node · linux/x64express@4.21.0

    믿는 것res.format requires handlers to set their own Content-Type header and falls back to a 200 response or uncaught exception when the Accept header is unmatched

    측정한 것res.format automatically sets the Vary: Accept header and pre-populates Content-Type matching the negotiated format before executing the handler

  24. npm샘플 컨트랙트node · linux/x64express@4.21.2

    믿는 것router.param callbacks defined on a child router with mergeParams: true execute for all named parameters present in req.params during route handling.

    측정한 것Express router.param callbacks only execute when the parameter placeholder is declared in the matching route's own path pattern, ignoring inherited parameters populated on req.params by mergeParams: true.

  25. npm샘플 컨트랙트node · linux/x64express@5.2.1

    믿는 것A good model would confidently expect that query parameters configured or named to represent collections will always parse as an array if present, or that ?id[]=1 syntax forces an array type.

    측정한 것req.query.id parses ?id=1 as the string '1', not an array.

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

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

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