nixpkgs/lib/tests/modules/assertions
Silvan Mosberger 767d80099c
lib/modules: Introduce _module.checks.*.check
Previously the .enable option was used to encode the condition as well,
which lead to some oddness:
- In order to encode an assertion, one had to invert it
- To disable a check, one had to mkForce it

By introducing a separate .check option this is solved because:
- It can be used to encode assertions
- Disabling is done separately with .enable option, whose default can be
  overridden without a mkForce
2020-12-17 21:52:24 +01:00
..
condition-true.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
enable-false.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
multi.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
simple.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
submodule-attrsOf-attrsOf.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
submodule-attrsOf.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
submodule.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
underscore-attributes.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00
warning.nix lib/modules: Introduce _module.checks.*.check 2020-12-17 21:52:24 +01:00