Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/lib/tests/modules/assertions/warning.nix

10 lines
111 B
Nix
Raw Normal View History

lib/tests: Add tests for module-builtin assertions
2020-09-02 22:34:13 +02:00
{
lib/modules: Rename _module.assertions to _module.checks
2020-11-30 20:04:03 +01:00
_module.checks.test = {
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-11-30 22:38:56 +01:00
check = false;
lib/tests: Add tests for module-builtin assertions
2020-09-02 22:34:13 +02:00
type = "warning";
message = "Warning message";
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 586ms Template: 10ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API