ネットワークが見つけたもの
以下の各行は意見ではなく測定です。いずれも公開サンプルにリンクしており、その contract はネットワークを切った固定コンテナで実行されるので、自分で再実行して結果に反論できます。
OS とランタイムはリンク先サンプルに記録された環境です。その項目がない記録は選択時に除外されます。
597 件の発見、8 個のエコシステム。
- cargo
- composer
- gem
- golang
- hex
- npm
- pub
- pypi
サンプルが述べ、その契約が測ったこと
公開サンプルが測定した結果の 526–550 件目(全 568 件)。
-
composerサンプル契約php · linux/x64symfony/console@v8.1.4
信じられていることQuestionHelper applies configured Question normalizers to default values in non-interactive execution before validating and returning the response.
測定結果QuestionHelper::ask() in non-interactive mode completely bypasses Question::setNormalizer(), returning the unnormalized default value and passing the unnormalized type directly to the validator.
-
composerサンプル契約php · linux/x64symfony/console@7.4.16
信じられていることA model expects that destroying StreamOutput closes its underlying stream resource, ConsoleOutput opens fresh stream handles per instance, OutputFormatter resets style tags between format calls, and ProgressBar writes output to STDOUT.
測定結果StreamOutput does not close its underlying stream resource when destroyed, leaving the file descriptor open unless explicitly closed with fclose by the caller
-
composerサンプル契約php · linux/x64symfony/console@8.1.4
信じられていることSerializing an ArrayInput instance to a CLI string with __toString() produces argument tokens that preserve boolean flag states and option values when round-tripped through StringInput.
測定結果ArrayInput::__toString() serializes a boolean true flag as '--flag=1', which throws RuntimeException when rebound to a VALUE_NONE option, and serializes a boolean false flag as '--flag', which inverts the flag to true when reparsed.
-
composerサンプル契約php · linux/x64symfony/console@7.2.1
信じられていることDeclaring a protected static $defaultName property on a Command subclass sets the command name and description and allows registering it with Application::add().
測定結果In Symfony Console 7, Command::getDefaultName() returns null for classes defining static $defaultName, leaving the command name null and causing Application::add() to throw LogicException unless configured via the #[AsCommand] attribute.
-
golangサンプル契約go · linux/x64sigs.k8s.io/yaml@v1.6.0
信じられていることUnmarshaling YAML with type mismatches returns a yaml.TypeError, non-pointer destinations return an InvalidUnmarshalError, and UnmarshalStrict returns uniform YAML unmarshal errors for all schema violations.
測定結果Type mismatch in YAML unmarshaling returns a wrapped *json.UnmarshalTypeError with prefix 'error unmarshaling JSON' and does not match yaml.TypeError
-
hexサンプル契約elixir · linux/x64nimble_options@1.1.1
信じられていることA custom type callback is expected to return an error tuple and still be reported as {:error, ValidationError}; anything else should do the same.
測定結果assert NimbleOptions.validate([port: :bad], custom_schema()) converts {:error, message} from the callback into a NimbleOptions.ValidationError whose message is prefixed with the library error field
-
hexサンプル契約elixir · linux/x64decimal@3.1.1
信じられていることDecimal.new/1 and Decimal.parse/1 parse any decimal string containing up to the default decimal128 context precision of 34 significant digits regardless of leading zeros.
測定結果assert Decimal.new parses 34 significant digits with leading zero without exceeding max_digits
-
golangサンプル契約go · linux/x64github.com/go-chi/chi/v5@v5.3.1
信じられていることCalling ClientIPFromXFF with no arguments extracts the originating client IP from the leftmost entry in X-Forwarded-For and updates RemoteAddr like RealIP.
測定結果assert ClientIPFromXFF with unset trusted prefixes returns the rightmost XFF hop rather than the leftmost client IP
-
golangサンプル契約go · linux/x64github.com/go-chi/chi/v5@v5.3.1
信じられていることRegistering middleware.URLFormat and middleware.StripSlashes in either order yields the same route match behavior for /item.json/.
測定結果When middleware.URLFormat is registered before middleware.StripSlashes and only GET /item exists, GET /item.json/ returns 404.
-
golangサンプル契約go · linux/x64sigs.k8s.io/yaml@v1.4.0
信じられていることsigs.k8s.io/yaml.Unmarshal preserves exact 64-bit integer values when decoding YAML into untyped maps or interface{} fields without explicit decoder options.
測定結果assert default Unmarshal silently truncates integers above 2^53 into float64 whereas JSONOpt UseNumber preserves exact int64 values as json.Number
-
golangサンプル契約go · linux/x64encoding/json@v1.26.5
信じられていることA JSON encoder serializes string values using standard RFC 8259 character escaping, preserving literal <, >, and & characters unless HTML escaping is explicitly enabled.
測定結果assert json.NewEncoder with default settings escapes <, >, and & into \u003c, \u003e, and \u0026
-
golangサンプル契約go · linux/x64sigs.k8s.io/yaml@v1.4.0
信じられていることA caller expects unknown YAML keys to be rejected by default when decoding into a typed struct.
測定結果assert Unmarshal succeeds when decoding `name: main unknown: value` into `decodeTarget` without options
-
golangサンプル契約go · linux/x64encoding/json@go1.26.5
信じられていることUsing Decoder.UseNumber causes every decoded number to be produced as json.Number, even when decoding into a concrete numeric struct field.
測定結果assert that decoding `{"count": 7, "wildcard": 7}` with Decoder.UseNumber into struct `{Count int; Wildcard any}` yields `Count` as an `int` and `Wildcard` as `json.Number`
-
golangサンプル契約go · linux/x64net/http@go1.26.5
信じられていることA caller using a default http.Client should see the same payload bytes and encoding metadata that the server put on the response.
測定結果When a server writes a gzip-compressed body, a default http.Client request must return plain text bytes, not gzip bytes.
-
golangサンプル契約go · linux/x64net/http@go1.26.5
信じられていることA POST request that receives a 303 See Other keeps its method and body through automatic redirect following.
測定結果A default client must follow `StatusSeeOther` (`303`) by issuing the next request as `GET`, not as the original method.
-
golangサンプル契約go · linux/x64net/http@go1.26.5
信じられていることA method token in a ServeMux pattern, such as `GET /resource`, is just part of the path and does not affect routing.
測定結果Registering `HandleFunc("GET /resource", ...)` and `HandleFunc("POST /resource", ...)` must allow GET and POST only, while a PUT request to `/resource` must fail with 405.
-
golangサンプル契約go · linux/x64encoding/json@v1.26.5
信じられていることjson.Marshal encodes fixed-size byte arrays [N]byte as Base64 strings and json.Unmarshal decodes Base64 strings into byte arrays.
測定結果assert json.Marshal encodes fixed-size byte array [N]byte as a JSON numeric array instead of a base64 string
-
golangサンプル契約go · linux/x64encoding/json@go1.26.5
信じられていることA field is omitted only when its value is reflect-empty, so a non-empty struct value must always be serialized unless `omitempty` is false.
測定結果assert json.Marshal with tag `field,omitzero` omits a non-empty struct when its IsZero() method returns true
-
golangサンプル契約go · linux/x64encoding/json@v1.26.5
信じられていることA caller can treat json.Encoder.Encode as json.Marshal followed by Write, so the output bytes are exactly the JSON value.
測定結果assert that json.NewEncoder(&buf).Encode(v) appends a trailing \n byte to the encoded output
-
pypiサンプル契約python · linux/x64httpx2@2.10.0
信じられていることPassing query parameters via the params argument merges them with query parameters already present in the target URL.
測定結果assert passing params to Request('GET', 'https://example.com/search?q=python', params={'page': '2'}) overwrites the URL query to 'page=2', discarding 'q=python'
-
composerサンプル契約php · linux/x64symfony/console@7.4.16
信じられていることA competent developer or model expects that during the execution of a parent command, the Application's active running command context is preserved across sub-command invocations, ensuring that error rendering retains the parent command's synopsis throughout its lifecycle.
測定結果Application doRun resets runningCommand to null upon sub-command completion instead of restoring the parent command
-
composerサンプル契約php · linux/x64guzzlehttp/guzzle@8.0.2
信じられていることPassing a stream or resource sink to a request that follows redirects writes only the final destination response body into the sink.
測定結果assert a stream sink passed during redirected requests accumulates both intermediate redirect bodies and final response body instead of only the destination body
-
npmサンプル契約node · linux/x64vitest@4.1.10
信じられていることmockReset clears call records and replaces the mock implementation with an empty function returning undefined like Jest, rather than reverting to the initial implementation while keeping the spy active
測定結果assert mockReset on vi.spyOn reverts to initial method implementation instead of undefined while continuing to intercept and record calls
-
cargoサンプル契約rust · linux/x64winnow@1.0.4
信じられていることWhen an alt combinator fails on invalid input after partially matching an alternative, ContextError preserves the error details and byte offset from whichever branch parsed deepest.
測定結果assert alt with ContextError discards a partial match in an earlier branch and returns the error and offset of the last evaluated branch, while cut_err prevents backtrack and preserves the deep failure site
-
composerサンプル契約php · linux/x64symfony/console@8.1.4
信じられていることUnrecognized CLI options throw InvalidOptionException and missing required arguments throw MissingInputException.
測定結果ArgvInput with an unknown option throws RuntimeException rather than InvalidOptionException or InvalidArgumentException
ここの行を確かめる方法
サンプルを開き、contract を読み、実行してください。contract はそのサンプル自身のテストです。ネットワークを切った固定コンテナで実行され、その実行の署名済みレシートがネットワークに保存されます。ここに書かれていることはライブラリについての解釈ではなく、ライブラリが実際に行ったことだけに基づいています。
公開済みのサンプルのうち、このページにないものがあります。契約は通過しておりサンプルも生きていますが、その契約に文として読める行がないからです。expect(x).toBe(1) のような断言は、検査している思い込みの隣に置いても読者に何も伝えません。読めない証拠を載せるより、空けておくことを選びました。