diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-04-04 12:22:08 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-05-18 17:50:05 +0200 |
commit | 4c7877b3e433cc4c919b5aea79a046ef936f4de3 (patch) | |
tree | ee2fa9a64f280164e26557ae3aeb555a3d8818aa /lib | |
parent | cc18ecf92f81e276ef3bf4febcb4b1a684661e5a (diff) |
lib/tests/modules/types-attrTag.nix: Test other option doc attrs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tests/modules/types-attrTag.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tests/modules/types-attrTag.nix b/lib/tests/modules/types-attrTag.nix index 277d4cc4cc0bd..ae676e3471369 100644 --- a/lib/tests/modules/types-attrTag.nix +++ b/lib/tests/modules/types-attrTag.nix @@ -59,6 +59,7 @@ in }; qux = mkOption { type = types.str; + description = "A qux for when you don't want a foo"; }; } ); @@ -106,6 +107,14 @@ in assert config.merged.extensi-bar == { extensible = "bar"; }; assert config.docs."submodules.<name>.foo.bar".type == "signed integer"; assert config.docs."submodules.<name>.qux".type == "string"; + assert config.docs."submodules.<name>.qux".declarations == [ __curPos.file ]; + assert config.docs."submodules.<name>.qux".loc == [ "submodules" "<name>" "qux" ]; + assert config.docs."submodules.<name>.qux".name == "submodules.<name>.qux"; + assert config.docs."submodules.<name>.qux".description == "A qux for when you don't want a foo"; + assert config.docs."submodules.<name>.qux".readOnly == false; + assert config.docs."submodules.<name>.qux".visible == true; + # Not available (yet?) + # assert config.docs."submodules.<name>.qux".declarationsWithPositions == [ ... ]; assert lib.length config.docs."merged.<name>.extensible".declarations == 2; true; }; |