codesamplex

サンプル

Verify that start_link eagerly checks worker module existence and validates pool_size type

sha256:f3bdf79601e6d0cb079ae5187e83d3ea06e4b2ed2c35f223db15ccb9dd6be4d8

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Verify that start_link eagerly checks worker module existence and validates pool_size type HOW
パッケージ
nimble_pool 1.1.0
環境
elixir
作成日
2026-08-16T15:08:03Z

よくある思い込み

A model expects that starting a lazy pool with lazy: true defers worker module validation until checkout, allowing start_link to return {:ok, pid} even when given an unresolvable worker module or an atom :infinity for pool_size.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート