lol

lib/tests/modules/types-attrTag.nix: Test other option doc attrs

+9
+9
lib/tests/modules/types-attrTag.nix
··· 59 59 }; 60 60 qux = mkOption { 61 61 type = types.str; 62 + description = "A qux for when you don't want a foo"; 62 63 }; 63 64 } 64 65 ); ··· 106 107 assert config.merged.extensi-bar == { extensible = "bar"; }; 107 108 assert config.docs."submodules.<name>.foo.bar".type == "signed integer"; 108 109 assert config.docs."submodules.<name>.qux".type == "string"; 110 + assert config.docs."submodules.<name>.qux".declarations == [ __curPos.file ]; 111 + assert config.docs."submodules.<name>.qux".loc == [ "submodules" "<name>" "qux" ]; 112 + assert config.docs."submodules.<name>.qux".name == "submodules.<name>.qux"; 113 + assert config.docs."submodules.<name>.qux".description == "A qux for when you don't want a foo"; 114 + assert config.docs."submodules.<name>.qux".readOnly == false; 115 + assert config.docs."submodules.<name>.qux".visible == true; 116 + # Not available (yet?) 117 + # assert config.docs."submodules.<name>.qux".declarationsWithPositions == [ ... ]; 109 118 assert lib.length config.docs."merged.<name>.extensible".declarations == 2; 110 119 true; 111 120 };