サンプル
Measure nil, untyped, union, struct, wildcard, required, map, and docs behavior in NimbleOptions 1.1.1
sha256:5de5eee0a598e06d7d653f53ed7253f189bca205daae8d8d6a48838b483626fc
PUBLISHED
L3_CONTRACT_PASS
MIT-0
実行証拠
宣言環境と署名済み検証実行を分け、証明範囲を明確にします。
証拠の基準署名済みコントラクト合格
検証レシート1
検証レベルL3_CONTRACT_PASS
宣言された環境
- 実行コンテキスト
- elixir 1
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- elixir 1
- 言語
- elixir
- パッケージマネージャー
- mix
検証実行環境
- 実行コンテキスト
- elixir 1
- OS
- linux alpine · musl
- アーキテクチャ
- x64
- ランタイム
- elixir 1
- 言語
- elixir
- パッケージマネージャー
- mix
- 実行方式
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
ケース
- ゴール
- Measure nil, untyped, union, struct, wildcard, required, map, and docs behavior in NimbleOptions 1.1.1 HOW
- パッケージ
-
nimble_options 1.1.1
- 環境
- elixir 1
- 作成日
- 2026-08-17T04:44:45Z
よくある思い込み
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
- assert {:or, [:string, nil]} accepts strings and nil and rejects an atom
- assert {:struct, URI} accepts a URI struct and rejects a plain map and a Date struct
- assert a wildcard key validates dynamic string options alongside named options and leaves an omitted named default absent
- assert a missing required option message lists only the caller-supplied keys rather than inserted defaults
- assert maps validate against a compiled NimbleOptions schema while a raw keyword schema raises FunctionClauseError
- assert docs omit a type label for nil and render the URI struct type label
ファイル
- NOTES.md
- csx.json
- lib/boundary_options.ex
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs
ソースアーティファクトをダウンロード (tar.gz)
オリジンシーダー
csx-seed
検証レシート
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9