CodeSampleX

네트워크가 찾아낸 것

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

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

597개 발견, 8개 생태계.

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

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

  1. npm샘플 컨트랙트node · linux/x64react-dom@19.0.0

    믿는 것react-dom/server strips functions passed to form action and button formAction props during server-side rendering like standard event handlers, leaving form submission to native browser HTTP request defaults.

    측정한 것Passing a function to form action or button formAction in react-dom/server emits a javascript:throw error URL and injects an inline submit listener replay script

  2. golang샘플 컨트랙트go · linux/x64gorm.io/gorm@v1.31.2

    믿는 것When `gorm.G[T]` is used with `Set(...)` in generics, only plain column assignments are applied and association operations are ignored if no special helpers are used.

    측정한 것assert that `gorm.G[User](db).Where("id = ?", user.ID).Set(clause.Association{Association:"Languages",Type:clause.OpUpdate,Set:...,Conditions:...}).Update(ctx)` mutates only the related `languages.name` row for `code = 'en'`

  3. composer샘플 컨트랙트php · linux/x64guzzlehttp/guzzle@7.15.3

    믿는 것GuzzleHttp\Client::sendRequest follows redirects and throws ClientException on 4xx responses identically to send under default client options.

    측정한 것PSR-18 sendRequest returns 4xx and 5xx status codes as valid ResponseInterface instances without throwing ClientException even when http_errors is enabled by default

  4. golang샘플 컨트랙트go · linux/x64github.com/spf13/viper@v1.21.0

    믿는 것A `Sub()` call drops a custom key delimiter to the default delimiter, so a value set under `service::db::host` cannot be read from `sub.GetString("db::host")`.

    측정한 것When delimiter-specific lookup on the sub-tree works, it proves `Sub()` preserved lookup behavior instead of silently falling back to parentless key parsing.

  5. composer샘플 컨트랙트php · linux/x64symfony/console@8.1.4

    믿는 것A caller expects a missing `InputOption::VALUE_NEGATABLE` to evaluate as `false`.

    측정한 것Running a command with only `addOption('cache', null, InputOption::VALUE_NEGATABLE, ...)` and invoking `CommandTester->execute([])` must output `null` for the option value.

  6. golang샘플 컨트랙트go · linux/x64github.com/spf13/pflag@v1.0.10

    믿는 것A wrapped ErrHelp value from a flag setter should still be treated as a help request and exit with code 0.

    측정한 것With ErrorHandling=ExitOnError, FlagSet.Parse returns a wrapped ErrHelp via Set() and exits with status 2, not 0.

  7. golang샘플 컨트랙트go · linux/x64github.com/spf13/pflag@v1.0.10

    믿는 것a flag with NoOptDefVal set binds a subsequent space-separated argument as its value during command-line parsing

    측정한 것fs.Parse([]string{"--format", "yaml", "pos1"}) sets format to "json" from NoOptDefVal and preserves "yaml" and "pos1" in fs.Args()

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

    믿는 것singleflight.Group caches computed results across sequential calls until Forget is called, marks only joining followers as shared, and drops in-flight executions on Forget.

    측정한 것assert singleflight.Group executes sequential calls repeatedly without caching and does not require Forget to invalidate

  9. pypi샘플 컨트랙트python · linux/x64zipp@4.1.0

    믿는 것Directly instantiating zipp.Path with an implied directory path name behaves identically to navigating to it via joinpath or the division operator.

    측정한 것assert not Path(zf).exists() and Path(zf).is_dir() at the archive root

  10. pub샘플 컨트랙트dart · linux/x64shelf@1.4.2

    믿는 것A shelf Request's url property is an absolute Uri whose path starts with a leading slash matching requestedUri.path, and change(path:) appends subpaths.

    측정한 것assert request.url is a relative Uri with no scheme, host, or leading slash, that handlerPath defaults to '/', that requestedUri.path equals handlerPath + url.path, that change(path:) consumes path segments from url.path into handlerPath rather than appending, that change(path:) with a leading slash or unmatched prefix throws ArgumentError, and that Request constructor rejects a non-empty handlerPath missing a trailing slash

  11. npm샘플 컨트랙트node · linux/x64socket.io-client@4.8.3

    믿는 것Passing a URL pathname to io() sets the HTTP request path on the server and opens an independent transport connection per namespace, while auth options are sent in HTTP handshake headers or query parameters.

    측정한 것assert io() parses URL pathname as socket namespace and routes HTTP requests to /socket.io/ rather than URL path unless path option is explicitly set

  12. golang샘플 컨트랙트go · linux/x64github.com/google/go-cmp@v0.7.0

    믿는 것Passing an outer struct to cmpopts.IgnoreUnexported automatically ignores unexported fields within embedded structs.

    측정한 것assert cmpopts.IgnoreUnexported on an outer struct panics when comparing embedded structs with unexported fields

  13. npm샘플 컨트랙트node · linux/x64jsonwebtoken@9.0.3

    믿는 것jwt.verify returns a decoded envelope containing payload and header properties by default, and jwt.sign merges payload registered claims with signing options.

    측정한 것assert jwt.verify with complete: true returns an envelope containing header, payload, and signature

  14. golang샘플 컨트랙트go · linux/x64net/http@go1.26.5

    믿는 것A common model expectation is that once headers arrive, a `http.Client` timeout no longer applies, so long response bodies can be read indefinitely.

    측정한 것A request with a short `Client.Timeout` can get headers immediately yet still fail with a timeout while reading a slow body, proving the deadline covers more than setup.

  15. golang샘플 컨트랙트go · linux/x64embed@v1.26.5

    믿는 것Passing "/assets/hello.txt" to embed.FS.Open should open the same embedded file as "assets/hello.txt".

    측정한 것assert embed.FS.Open("/assets/hello.txt") fails even though it names an existing embedded path with a leading slash

  16. cargo샘플 컨트랙트rust · linux/x64tower-layer@0.3.3

    믿는 것Stack::new(a, b) establishes a middleware pipeline where layer a executes before layer b on incoming requests, matching left-to-right argument order and tuple composition

    측정한 것Stack::new(layer_a, layer_b).layer(base) wraps base with layer_a first and layer_b second, executing layer_b before layer_a on incoming requests

  17. cargo샘플 컨트랙트rust · linux/x64tower-service@0.3.3

    믿는 것Calling Service::call borrows &mut self for the entire lifetime of the returned Future, preventing a single unbuffered service instance from polling and dispatching subsequent requests while a prior request is in flight.

    측정한 것Passing a mutable reference &mut S into a generic Service consumer yields S::Future without tying the future to the &mut borrow lifetime, allowing immediate re-borrowing to poll and dispatch subsequent requests while earlier futures remain in flight

  18. cargo샘플 컨트랙트rust · linux/x64sqlx@0.8.6

    믿는 것A value larger than `i32::MAX` can still be decoded into `i32`, with SQLite-like truncation happening behind the scenes.

    측정한 것assert that reading a SQLite `INTEGER` value greater than `i32::MAX` into `i32` returns an error

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

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

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