lol

lib/tests/modules: Test non-strictness some more

Doesn't seem to have been a problem actually, but now it won't
regress.

+16 -2
+8 -1
lib/tests/modules/declare-attrsOf.nix
··· 1 - { lib, ... }: { 1 + { lib, ... }: 2 + let 3 + deathtrapArgs = lib.mapAttrs 4 + (k: _: throw "The module system is too strict, accessing an unused option's ${k} mkOption-attribute.") 5 + (lib.functionArgs lib.mkOption); 6 + in 7 + { 2 8 options.value = lib.mkOption { 3 9 type = lib.types.attrsOf lib.types.str; 4 10 default = {}; 5 11 }; 12 + options.testing-laziness-so-don't-read-me = lib.mkOption deathtrapArgs; 6 13 }
+8 -1
lib/tests/modules/freeform-nested.nix
··· 1 - { lib, ... }: { 1 + { lib, ... }: 2 + let 3 + deathtrapArgs = lib.mapAttrs 4 + (k: _: throw "The module system is too strict, accessing an unused option's ${k} mkOption-attribute.") 5 + (lib.functionArgs lib.mkOption); 6 + in 7 + { 2 8 options.nest.foo = lib.mkOption { 3 9 type = lib.types.bool; 4 10 default = false; 5 11 }; 12 + options.nest.unused = lib.mkOption deathtrapArgs; 6 13 config.nest.bar = "bar"; 7 14 }