네트워크가 찾아낸 것
아래 각 줄은 의견이 아니라 측정입니다. 모두 공개된 샘플로 연결되며, 그 샘플의 contract는 네트워크를 끈 고정 컨테이너에서 실행되므로 직접 다시 돌려 보고 반박할 수 있습니다.
운영체제와 런타임은 연결된 샘플에 실제 기록된 환경을 기준으로 합니다. 해당 값이 없는 항목은 필터 선택 시 제외됩니다.
597개 발견, 8개 생태계.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
샘플이 말하고, 계약이 측정한 것
발행된 샘플이 측정한 결과 중 76–100번째입니다(전체 568개).
-
gem샘플 컨트랙트ruby · linux/x64activesupport@8.1.3.1
믿는 것ActiveSupport::TimeZone#parse retains the parsed string's offset or assigns wall-clock time directly without zone conversion, and raises ArgumentError on invalid date strings like standard Time.parse.
측정한 것ActiveSupport::TimeZone#parse with an explicit UTC offset converts the instant into the receiver's time zone representation rather than retaining the string's offset or treating the wall-clock time as local.
-
pypi샘플 컨트랙트python · linux/x64greenlet@3.5.4
믿는 것A newly created greenlet automatically inherits the active contextvars context of the parent greenlet that spawned it, and setting context variables inside the greenlet alters the ambient context seen by the parent upon returning.
측정한 것A newly created greenlet starts with gr_context as None and executes within a fresh isolated contextvars Context that does not inherit the caller greenlet's ContextVar values, unless a Context is explicitly assigned to gr_context prior to switching.
-
golang샘플 컨트랙트go · linux/x64gopkg.in/yaml.v3@v3.0.1
믿는 것Unmarshaling a YAML mapping directly into *yaml.Node produces a MappingNode whose Content slice holds child values.
측정한 것yaml.Unmarshal into *yaml.Node produces a root DocumentNode with Kind 1 whose Content slice wraps the top-level MappingNode (Kind 4) at index 0 rather than returning a MappingNode directly.
-
npm샘플 컨트랙트node · linux/x64ajv@8.20.0
믿는 것Setting removeAdditional true in Ajv options strips all undeclared properties from validated objects regardless of whether additionalProperties false is present in the schema
측정한 것Ajv with removeAdditional true removes undeclared properties from validated objects only when additionalProperties false is explicitly specified in the schema, retaining undeclared properties when additionalProperties is omitted.
-
npm샘플 컨트랙트node · linux/x64uuid@14.0.1
믿는 것UUIDv1 strings sort chronologically by generation time, or converting between UUID versions requires manually decoding and recalculating timestamp fields
측정한 것UUIDv7 with identical timestamps sorts strictly by sequence number
-
cargo샘플 컨트랙트rust · linux/x64once_cell@1.21.4
믿는 것A common belief is that OnceCell initialization failure permanently poisons the cell preventing subsequent retry, or that unsync::OnceCell allows recursive initialization without panicking.
측정한 것get_or_try_init leaves the OnceCell uninitialized upon receiving Err, enabling subsequent initialization attempts to retry and succeed without cell poisoning
-
npm샘플 컨트랙트node · linux/x64yoga-layout@3.2.1
믿는 것Setting explicit dimensions with padding and border calculates content-box size like web CSS, and container overflow automatically shrinks child items without configuring web defaults.
측정한 것Yoga 3 defaults node box-sizing to BoxSizing.BorderBox (0) where fixed dimensions include padding and border, expanding computed bounds only when switched to BoxSizing.ContentBox (1)
-
golang샘플 컨트랙트go · linux/x64golang.org/x/sync@v0.22.0
믿는 것singleflight.Group.DoChan returns a shared broadcast channel that closes after sending, blocks the worker if an abandoned caller stops receiving, and does not deduplicate against synchronous Do.
측정한 것assert singleflight.Group.DoChan allocates a distinct buffered channel of capacity 1 for each caller so concurrent readers do not compete or consume each other's results
-
pypi샘플 컨트랙트python · linux/x64pytest@9.0.3
믿는 것pytest.approx(0.0) matches small floating point numbers like 1e-7 using the default 1e-6 relative tolerance
측정한 것pytest.approx(0.0) compares against zero using exclusively the absolute tolerance (defaulting to 1e-12) because relative tolerance scales to zero, causing 1e-7 == approx(0.0) to evaluate to False unless abs is explicitly set
-
npm샘플 컨트랙트node · linux/x64lodash-es@4.18.1
믿는 것defaultsDeep returns a new cloned object without mutating the destination and concatenates or overwrites entire arrays when applying nested defaults.
측정한 것defaultsDeep mutates the destination object in-place and merges array elements index-by-index rather than replacing or concatenating them
-
golang샘플 컨트랙트go · linux/x64github.com/jackc/pgx/v5@v5.10.0
믿는 것CollectOneRow errors when multiple rows match, empty PostgreSQL ranges scan as Valid=false like SQL NULL, and PostgreSQL infinity timestamps scan into time.Time
측정한 것CollectOneRow consumes the first row without error on multi-row results whereas CollectExactlyOneRow rejects multiple rows with ErrTooManyRows
-
golang샘플 컨트랙트go · linux/x64github.com/google/go-cmp@v0.7.0
믿는 것Standard library error values can be compared directly with cmp.Equal or cmp.Diff like other basic Go types.
측정한 것Comparing standard error values without cmpopts.EquateErrors panics at runtime because standard errors contain unexported struct fields
-
npm샘플 컨트랙트node · linux/x64nanoid@6.0.1
믿는 것Negative size arguments passed to nanoid/non-secure functions are expected to throw a RangeError matching cryptographic nanoid behavior.
측정한 것nanoid/non-secure functions return an empty string for negative or non-positive sizes rather than throwing RangeError like root nanoid
-
npm샘플 컨트랙트node · linux/x64fs-extra@11.3.0
믿는 것fs.move overwrites existing destination files by default like fs.copy and Node's fs.rename, and requires destination parent directories to already exist
측정한 것fs.move rejects with 'dest already exists.' when destination exists unless overwrite: true is explicitly passed, while fs.copy defaults overwrite to true
-
pypi샘플 컨트랙트python · linux/x64markupsafe@3.0.3
믿는 것escape() decodes UTF-8 byte sequences before HTML-escaping them, and str.join() escapes raw strings when concatenating with Markup elements.
측정한 것escape() converts bytes objects via str() to their literal repr 'b\'...\'' and escapes the resulting quotes rather than decoding UTF-8 bytes, requiring Markup(data, encoding) for explicit byte decoding.
-
pypi샘플 컨트랙트python · linux/x64structlog@26.1.0
믿는 것Calling bind_contextvars automatically propagates context variables to all structlog loggers without requiring merge_contextvars in the processor chain.
측정한 것Calling bind_contextvars has no effect on log output unless merge_contextvars is explicitly present in the processor chain, and bound logger fields override conflicting context variables.
-
pypi샘플 컨트랙트python · linux/x64packaging@24.2
믿는 것parse_wheel_filename preserves unnormalized distribution names and parses build tags as plain strings or leaves compressed wheel tags unexpanded
측정한 것parse_wheel_filename returns a 4-tuple of canonicalized name, parsed Version, integer-prefixed build tag tuple, and Cartesian-product expanded Tag frozenset, rejecting build tags without a leading digit.
-
golang샘플 컨트랙트go · linux/x64google.golang.org/protobuf@v1.36.12
믿는 것proto.Merge replaces repeated slice fields with the source list and ignores explicit zero values for optional fields, while reflect.DeepEqual can safely compare protobuf messages.
측정한 것proto.Merge appends repeated slice elements rather than replacing them, leaves destination scalars untouched when source holds implicit zero values, overwrites destination when source explicitly sets proto3 optional zero values, and recursively merges nested message fields.
-
pypi샘플 컨트랙트python · linux/x64python-dotenv@1.2.2
믿는 것A model would expect single quotes to expand escape sequences identically to double quotes, and for inline comments to consistently require or not require preceding whitespace.
측정한 것dotenv_values expands \n to an actual newline only inside double quotes, and treats # as a comment only if it follows a space (when unquoted) or immediately follows a closing quote.
-
pypi샘플 컨트랙트python · linux/x64pycparser@2.22
믿는 것pycparser can automatically skip or handle standard preprocessor directives like #include when parsing C source.
측정한 것CParser().parse() raises ParseError with 'Directives not supported yet' when given C code containing #include <stdio.h>, rather than successfully ignoring or processing it.
-
golang샘플 컨트랙트go · linux/x64github.com/lmittmann/tint@v1.2.0
믿는 것tint formats AddSource as a standard key-value attribute at the end of the log line matching slog.TextHandler conventions.
측정한 것tint.NewTextHandler formats source code locations directly between the level badge and log message as a faint prefix instead of a trailing key-value pair, and allows complete suppression or replacement via ReplaceAttr
-
pypi샘플 컨트랙트python · linux/x64markupsafe@3.0.3
믿는 것Markup.format() treats objects returning str from __html__() as pre-escaped HTML identically to escape() and % interpolation.
측정한 것Markup.format() escapes plain str returns from __html__() into HTML entities because EscapeFormatter wraps format_field results in escape(), requiring __html__() to return Markup or define __html_format__ for unescaped formatting
-
cargo샘플 컨트랙트rust · linux/x64rustls@0.23.43
믿는 것ResolvesServerCertUsingSni accepts wildcard domain patterns or IP literals as registration keys and serves any mapped certificate without validating its Subject Alternative Names against the domain key
측정한 것rustls ResolvesServerCertUsingSni::add strictly rejects wildcard patterns and IP literals as registration keys and validates that the certified key's SAN matches the registered DNS domain
-
pypi샘플 컨트랙트python · linux/x64packaging@24.1
믿는 것a pre-release like 2.1a1 is contained in the range >=2.0 because it evaluates as strictly greater than 2.0
측정한 것SpecifierSet('>=2.0').contains('2.1a1') returns False rather than True, because pre-releases are silently excluded from version ranges by default under PEP 440.
-
cargo샘플 컨트랙트rust · linux/x64thiserror@2.0.20
믿는 것#[error(transparent)] causes Error::source to return the wrapped error as Some(&inner)
측정한 것Calling Error::source on an error deriving Error with #[error(transparent)] delegates directly to inner.source(), returning None when wrapping a root error and omitting the wrapped type from the error cause chain.
여기 있는 줄을 확인하는 방법
샘플을 열고 contract를 읽고 실행하십시오. contract는 그 샘플 자신의 테스트입니다. 네트워크를 끈 고정 컨테이너에서 실행되고, 그 실행의 서명된 영수증이 네트워크에 저장됩니다. 여기 있는 어떤 것도 라이브러리에 대한 우리의 해석에 기대지 않습니다. 라이브러리가 실제로 한 일에만 기댑니다.
게시된 샘플 중 일부는 이 페이지에 없습니다. 계약은 통과했고 샘플도 살아 있지만, 그 계약에 문장으로 읽힐 줄이 없기 때문입니다. expect(x).toBe(1) 같은 단언은 그것이 검사하는 믿음 옆에 놓아도 독자에게 아무것도 말해주지 않습니다. 읽을 수 없는 근거를 싣기보다는 뺀다는 쪽을 택했습니다.