네트워크가 찾아낸 것
아래 각 줄은 의견이 아니라 측정입니다. 모두 공개된 샘플로 연결되며, 그 샘플의 contract는 네트워크를 끈 고정 컨테이너에서 실행되므로 직접 다시 돌려 보고 반박할 수 있습니다.
운영체제와 런타임은 연결된 샘플에 실제 기록된 환경을 기준으로 합니다. 해당 값이 없는 항목은 필터 선택 시 제외됩니다.
597개 발견, 8개 생태계.
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
샘플이 말하고, 계약이 측정한 것
발행된 샘플이 측정한 결과 중 201–225번째입니다(전체 568개).
-
npm샘플 컨트랙트node · linux/x64@babel/preset-env@7.29.7
믿는 것a regular expression with named capture groups compiled by Babel will preserve the exact syntactic shape of the pattern in its .source property
측정한 것the .source property of a named capture group regex transpiled for IE11 evaluates to a string stripped of the capture group names, rather than the original source string
-
npm샘플 컨트랙트node · linux/x64@babel/preset-env@8.0.2
믿는 것@babel/preset-env defaults the modules option to commonjs, unconditionally transforming import statements into require calls regardless of caller capabilities.
측정한 것When the modules option is left unset, @babel/preset-env defaults to 'auto' and preserves static import and export declarations unchanged when caller.supportsStaticESM is true, rather than converting them to require calls.
-
npm샘플 컨트랙트node · linux/x64express@4.18.2
믿는 것Leaving the query parser unconfigured in Express parses query string parameters into flat key-value pairs without constructing nested objects.
측정한 것When the `query parser` setting is left unset on an Express application, Express defaults `app.get('query parser')` to `'extended'` and uses `qs` to parse bracketed keys like `filter[status]=active` into nested objects rather than flat string keys.
-
npm샘플 컨트랙트node · linux/x64express@4.21.2
믿는 것res.format directly renders an HTTP 406 response rather than routing a NotAcceptableError to next(), err.types preserves raw format keys like ['html'], and default handlers receive a pre-assigned Content-Type.
측정한 것res.format routes an HTTP 406 NotAcceptableError to next() with canonicalized MIME types in err.types and unconditionally sets Vary: Accept when no registered format matches the Accept header and no default handler is provided
-
npm샘플 컨트랙트node · linux/x64@babel/preset-env@7.24.7
믿는 것Passing useBuiltIns: true enables polyfilling, corejs: 4 configures next-generation core-js polyfills, and modules: 'esm' enables ES module output.
측정한 것Passing useBuiltIns: true throws an Error requiring 'false', 'entry', or 'usage', while passing corejs: 4 with polyfilling throws a RangeError rejecting versions outside core-js@2 and core-js@3.
-
hex샘플 컨트랙트elixir 1 · linux/x64req@0.7.2
믿는 것A nil or empty-list Req header is absent from the internal map, so put_new_header supplies a fallback and get_header distinguishes it from a missing header.
측정한 것assert Req.new retains nil and empty-list header keys with empty-list values while get_header returns [] for both those keys and missing keys
-
hex샘플 컨트랙트elixir 1 · linux/x64req@0.7.2
믿는 것An into: :self response body can be enumerated from another process, and a Collectable receives response bytes for every status code.
측정한 것assert an into: :self body is a Req.Response.Async tied to the requester pid and enumeration in another process raises RuntimeError
-
hex샘플 컨트랙트elixir 1 · linux/x64req@0.7.2
믿는 것Two overlapping Req calls made from one request value each enumerate a shared one-shot body independently and both receive all four chunks.
측정한 것assert two overlapping Req.request! calls consume exactly four chunks in total from the shared Agent-backed stream
-
hex샘플 컨트랙트elixir 1 · linux/x64req@0.7.2
믿는 것Req archive decoders return string-keyed maps, compressed JSON decodes without the compressed option, and normalized header access returns scalar strings.
측정한 것assert decode_body leaves the tested gzip JSON bytes unchanged when compressed is false and decodes them after decompress_body runs with compressed true
-
hex샘플 컨트랙트elixir 1 · linux/x64req@0.7.2
믿는 것Following a 303 after a JSON POST keeps the POST method, encoded body, and content-type on the redirected request.
측정한 것assert the offline adapter first receives POST /start whose body iodata becomes the exact JSON bytes and whose content-type is application/json
-
hex샘플 컨트랙트elixir · linux/x64req@0.7.2
믿는 것Req preserves Authorization headers across cross-origin redirects by default, retains the POST method when following 301 and 302 redirects, and sends no automatic accept-encoding headers unless compressed is requested.
측정한 것assert same-origin redirects preserve Authorization headers while cross-origin redirects to a different host strip them
-
hex샘플 컨트랙트elixir · linux/x64req@0.7.2
믿는 것Passing a malformed adapter to Req.request/2 should return an error tuple from the API boundary when the request is executed.
측정한 것assert RuntimeError is raised when an adapter returns a non-tuple shape instead of {request, response} or {request, exception}; Req.request/2 is used (not a stubbed plugin path).
-
hex샘플 컨트랙트elixir · linux/x64req@0.7.2
믿는 것Merging a leading-slash path into a base_url in Req replaces the base path following RFC 3986, and setting a body on a default request sends a GET request.
측정한 것assert Req.Steps.put_base_url concatenates leading-slash paths to the base_url path instead of replacing it like RFC 3986 URI.merge
-
hex샘플 컨트랙트elixir · linux/x64req@0.7.2
믿는 것Providing `path_params` should replace a URL placeholder like `{id}` even when `path_params_style` is not set.
측정한 것Curly placeholders in the URL are not interpolated by default, so `{id}` stays unreplaced when `path_params_style` is omitted.
-
hex샘플 컨트랙트elixir 1 · linux/x64nimble_options@1.1.1
믿는 것type: nil leaves a NimbleOptions key untyped, the same as omitting :type.
측정한 것assert type: nil accepts nil and rejects tested non-nil values while an omitted type accepts arbitrary terms
-
hex샘플 컨트랙트elixir 1 · linux/x64nimble_options@1.1.1
믿는 것NimbleOptions.new! reports an invalid schema with NimbleOptions.ValidationError, matching value-validation failures.
측정한 것assert NimbleOptions.new! with an unknown type atom raises ArgumentError
-
hex샘플 컨트랙트elixir 1 · linux/x64nimble_options@1.1.1
믿는 것A NimbleOptions custom validator can be an anonymous function that returns a boolean and receives its value after any configured arguments.
측정한 것assert a custom validator uses an MFA 4-tuple, receives the option value first, returns {:ok, transformed} or {:error, message}, and can replace the validated value
-
hex샘플 컨트랙트elixir 1 · linux/x64nimble_csv@1.3.0
믿는 것Passing separator: "\t" to NimbleCSV.RFC4180.parse_string/2 changes that predefined parser's delimiter for the call.
측정한 것assert RFC4180 parse_string with separator: tab and skip_headers: false keeps each tabbed line as one field
-
hex샘플 컨트랙트elixir 1 · linux/x64nimble_csv@1.3.0
믿는 것NimbleCSV.parse_stream reassembles arbitrary byte chunks into complete lines, and the default dumper prefixes spreadsheet formula triggers.
측정한 것assert parsing the arbitrary chunks directly does not yield the complete expected table while RFC4180.to_line_stream reconstructs five complete lines and enables that parse
-
hex샘플 컨트랙트elixir 1 · linux/x64ecto@3.14.1
믿는 것Parameterized types in Ecto schemas are represented as three-element tuples of {:parameterized, module, params}, and casting an Ecto.Enum with mapped values accepts the underlying database representation.
측정한 것assert schema type for an Ecto.Enum is a 2-element tuple {:parameterized, {Ecto.Enum, info}} rather than a 3-element tuple, Ecto.Type.parameterized? identifies it, and Ecto.Type.type returns the underlying primitive storage type
-
hex샘플 컨트랙트elixir · linux/x64ecto@3.14.1
믿는 것A competent developer expects put_assoc/4 to associate child records directly onto any struct or changeset, assuming schema association fields default to empty collections or nil when newly constructed.
측정한 것Calling put_assoc/4 on a loaded struct with unloaded associations raises RuntimeError because uninitialized associations hold an %Ecto.Association.NotLoaded{} struct rather than nil or [], and Ecto.assoc_loaded?/1 returns false.
-
hex샘플 컨트랙트elixir · linux/x64ecto@3.14.1
믿는 것Declaring @primary_key {:id, :binary_id, autogenerate: true} on an Ecto schema sets the default foreign key type for belongs_to associations to :binary_id, allowing UUID string foreign key parameters to be cast without explicit type configuration.
측정한 것assert belongs_to defaults the foreign key field type to :id integer even when @primary_key is configured as :binary_id, causing binary UUID string parameters to fail with a cast validation error
-
hex샘플 컨트랙트elixir · linux/x64ecto@3.14.1
믿는 것A competent Ecto user expects `optimistic_lock/2` to protect updates using the row's current stored `:lock_version`, and that unsafely cast `:lock_version` params cannot influence the value used in the conflict check.
측정한 것When `:lock_version` is not cast, `optimistic_lock/2` keeps the filter at the struct value, but once `:lock_version` is allowed in `cast/3`, `optimistic_lock/2` switches the filter to that user-supplied value, so checks can run against a client-controlled token.
-
hex샘플 컨트랙트elixir 1 · linux/x64ecto@3.14.1
믿는 것cast/4 accepts the underlying database representation for mapped enums, unmapped enums dump as atoms or integers, and load/3 accepts the same string and atom values as cast/4.
측정한 것assert cast accepts declared atom/string keys and mapped database values for Ecto.Enum, normalizing them to the declared atom while rejecting values outside both sets
-
hex샘플 컨트랙트elixir 1 · linux/x64ecto@3.14.1
믿는 것An Ecto query binding list must name every intermediate join, so `[first, ..., last]` cannot select the outer bindings.
측정한 것assert a query with two joins compiles when a follow-up from expression uses the binding list [first, ..., last]
여기 있는 줄을 확인하는 방법
샘플을 열고 contract를 읽고 실행하십시오. contract는 그 샘플 자신의 테스트입니다. 네트워크를 끈 고정 컨테이너에서 실행되고, 그 실행의 서명된 영수증이 네트워크에 저장됩니다. 여기 있는 어떤 것도 라이브러리에 대한 우리의 해석에 기대지 않습니다. 라이브러리가 실제로 한 일에만 기댑니다.
게시된 샘플 중 일부는 이 페이지에 없습니다. 계약은 통과했고 샘플도 살아 있지만, 그 계약에 문장으로 읽힐 줄이 없기 때문입니다. expect(x).toBe(1) 같은 단언은 그것이 검사하는 믿음 옆에 놓아도 독자에게 아무것도 말해주지 않습니다. 읽을 수 없는 근거를 싣기보다는 뺀다는 쪽을 택했습니다.