CodeSampleX

네트워크가 찾아낸 것

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

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

597개 발견, 8개 생태계.

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

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

  1. npm샘플 컨트랙트node · linux/x64core-js@3.42.0

    믿는 것Configuring core-js with useNative prevents polyfills from being installed even when the target feature is completely missing from the environment.

    측정한 것Calling core-js/configurator with usePolyfill forces replacement of compliant native methods upon module import, whereas useNative preserves native implementations but still installs polyfills when the target property is undefined.

  2. npm샘플 컨트랙트node · linux/x64three@0.185.1

    믿는 것Cloning an InterleavedBufferAttribute preserves its interleaved layout and BufferAttribute.needsUpdate is a readable boolean flag.

    측정한 것BufferGeometry.clone preserves shared InterleavedBuffer instances across attributes while standalone InterleavedBufferAttribute.clone de-interleaves into standard BufferAttribute, and BufferAttribute.needsUpdate is a write-only setter that increments version rather than exposing a readable boolean property.

  3. npm샘플 컨트랙트node · linux/x64es-toolkit@1.50.0

    믿는 것Instantiating or catching AbortError yields an error object whose name property is 'AbortError' and code is 20 (DOMException.ABORT_ERR).

    측정한 것AbortError instances have name set to 'Error' and code set to 0 rather than 'AbortError' and 20 because its constructor extends DOMException and invokes super(message) without the name argument

  4. npm샘플 컨트랙트node · linux/x64@babel/core@7.22.5

    믿는 것a naive model expects transformFromAstSync can transform arbitrary AST nodes like statements or expressions in-place, but it strictly requires a Program or File root node and clones the input by default

    측정한 것transformFromAstSync throws if the AST root is not a Program or File node, refusing to transform individual statements.

  5. npm샘플 컨트랙트node · linux/x64@babel/core@7.24.0

    믿는 것babel.parseSync returns a standard ESTree Program AST node whose top-level body property directly contains statements, and defaults non-module code to script sourceType.

    측정한 것babel.parseSync returns a File AST node where statements are nested under ast.program.body while root ast.body is undefined, and defaults ast.program.sourceType to module.

  6. npm샘플 컨트랙트node · linux/x64@babel/core@7.22.5

    믿는 것transformFromAst accepts options as its second parameter in transformFromAst(ast, options) like transform(code, options), applying plugins directly

    측정한 것transformFromAst(ast, options) treats the options object as the raw code string and leaves options undefined, generating code without applying plugins

  7. npm샘플 컨트랙트node · linux/x64fast-glob@3.3.3

    믿는 것A slashless pattern like *.txt matches nested files across subdirectories by default, and a negative-only pattern array discovers all unmatched files.

    측정한 것fg with baseNameMatch expands slashless patterns like *.txt to match nested files at any depth while default matching is restricted to the search root.

  8. npm샘플 컨트랙트node · linux/x64minimatch@10.1.1

    믿는 것patterns starting with a hash character match literal hash-prefixed filenames by default

    측정한 것assert minimatch treats leading hash characters as comments that match nothing by default, requiring nocomment or backslash escaping to match literal hashes

  9. pypi샘플 컨트랙트python · linux/x64polars-runtime-32@1.43.2

    믿는 것Mutating the POLARS_ENGINE_AFFINITY environment variable at runtime immediately updates the engine affinity of the polars runtime, and setting an unrecognized engine name raises an exception.

    측정한 것In-process mutations to POLARS_ENGINE_AFFINITY do not take effect until config_reload_env_var is explicitly invoked, and unrecognized engine names fall back to auto rather than raising an exception.

  10. golang샘플 컨트랙트go · linux/x64golang.org/x/sync@v0.22.0

    믿는 것Calling CompareAndSwap with an old value of nil acts as an insert-if-absent operation by treating unassigned keys as having a nil value.

    측정한 것CompareAndSwap on an absent key returns false when old is nil, but succeeds and returns true when the key was explicitly stored with nil

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

    믿는 것attribute.NewSet copies the provided slice to avoid mutating the caller's arguments, leaving the original variadic slice unchanged.

    측정한 것attribute.NewSet mutates the provided slice in place to sort it and deduplicate, leaving discarded duplicates at the beginning and the unique set at the end.

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

    믿는 것A model assumes passing a zero-valued SpanLimits struct or partially specified limits to WithRawSpanLimits applies default limits for unmentioned fields or allows unlimited telemetry, whereas WithRawSpanLimits applies zero values verbatim, truncating string attributes to empty strings and dropping all events and links.

    측정한 것SpanLimits passed with uninitialized zero values to WithRawSpanLimits truncates all string attribute values to empty strings and drops all events and links because zero values are applied verbatim rather than falling back to defaults

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

    믿는 것A model expects span limits to apply a uniform eviction strategy across all collections, truncate string attributes by byte count, and enforce AttributeValueLengthLimit across span, event, and link attributes identically.

    측정한 것sdktrace.WithSpanLimits applies tail-drop to span attributes while applying FIFO eviction to span events and links when count limits are exceeded.

  14. golang샘플 컨트랙트go · linux/x64github.com/jackc/pgx/v5@v5.10.0

    믿는 것tx.Exec returns standard sql.Result types, allows execution after transaction commit or rollback, and leaves transactions permanently broken upon query failure without savepoint recovery

    측정한 것pgx.Tx.Exec returns a structured pgconn.CommandTag with RowsAffected and command predicates rather than sql.Result, and immediately rejects execution on committed or rolled back transactions with ErrTxClosed

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

    믿는 것ShouldBindJSON caches the request body to allow multiple binds on the same context, and requires an application/json Content-Type header before parsing.

    측정한 것ShouldBindJSON consumes the request body stream directly without caching, causing any subsequent ShouldBindJSON call on the same context to return io.EOF.

  16. npm샘플 컨트랙트node · linux/x64minimatch@10.1.1

    믿는 것minimatch.unescape strips backslash escape sequences under windowsPathsNoEscape mode and preserves brace escapes by default

    측정한 것minimatch.unescape preserves backslash sequences under windowsPathsNoEscape mode because backslashes are treated as path separators rather than escape characters

  17. npm샘플 컨트랙트node · linux/x64@babel/core@7.24.0

    믿는 것babel.transformFromAstSync includes the processed AST in its return object by default, since it is an AST-focused API.

    측정한 것babel.transformFromAstSync returns a null ast property by default to save memory, rather than returning the processed AST

  18. golang샘플 컨트랙트go · linux/x64github.com/caddyserver/caddy/v2@v2.11.4

    믿는 것The filter log encoder requires an explicit wrapped encoder format and uses dot notation for nested log field paths.

    측정한 것Caddy's filter log encoder module (caddy.logging.encoders.filter) intercepts zap log fields and filters nested object paths delimited by '>' before delegating encoding to a wrapped encoder, defaulting to JSON when wrap is unconfigured.

  19. golang샘플 컨트랙트go · linux/x64github.com/jackc/pgx/v5@v5.10.0

    믿는 것pgconn.PgError.Error() includes diagnostic details such as Detail, Hint, and ConstraintName in its formatted error string.

    측정한 것pgconn.PgError.Error() formats only the severity, message, and SQLSTATE code, leaving Detail, Hint, and constraint metadata accessible exclusively through struct fields

  20. pypi샘플 컨트랙트python · linux/x64numpy@2.5.2

    믿는 것numpy.asarray with copy=False creates an ndarray from any sequence without raising an exception

    측정한 것numpy.asarray with copy=False raises ValueError when a copy cannot be avoided for Python sequences or incompatible dtypes

  21. golang샘플 컨트랙트go · linux/x64github.com/caddyserver/caddy/v2@v2.11.4

    믿는 것Evaluating ReplaceKnown on an unset http.vars placeholder leaves the placeholder token unreplaced in the string because the variable was never defined.

    측정한 것The caddyhttp replacer recognizes all {http.vars.*} placeholders as known and replaces unset variables with the fallback string in ReplaceKnown rather than leaving them unreplaced.

  22. npm샘플 컨트랙트node · linux/x64three@0.185.1

    믿는 것ACESFilmicToneMapping is an object or tone mapping pass class rather than an integer mode constant (4) consumed by WebGL and WebGPU pipelines.

    측정한 것ACESFilmicToneMapping is exported as the integer constant 4 across root and webgpu entrypoints, identifying the ACES Filmic curve in ShaderChunk and ToneMappingNode pipelines.

  23. npm샘플 컨트랙트node · linux/x64marked@18.0.5

    믿는 것marked.parse automatically returns a Promise and awaits token transformations whenever an asynchronous walkTokens handler or async hook is provided.

    측정한 것marked.parse with an asynchronous walkTokens handler returns a rendered HTML string synchronously without awaiting token transformations unless the async: true option is explicitly provided.

  24. golang샘플 컨트랙트go · linux/x64github.com/caddyserver/caddy/v2@v2.10.0

    믿는 것Caddyfile log output file blocks accept roll_interval to schedule time-based log rotation.

    측정한 것Parsing a Caddyfile log output file block containing roll_interval fails with an unrecognized subdirective error.

  25. golang샘플 컨트랙트go · linux/x64github.com/caddyserver/caddy/v2@v2.11.4

    믿는 것The filter.hash log filter replaces field values with a full 64-character SHA-256 hexadecimal hash string.

    측정한 것Caddy's filter.hash log filter module (caddy.logging.encoders.filter.hash) replaces string log field values with an 8-character hexadecimal string representing the first 4 bytes of their SHA-256 hash.

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

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

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