From cf4968a9045e7404ba54598ee9608f7e33458006 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 4 Apr 2024 12:22:08 +0200 Subject: lib/tests/modules/types-attrTag.nix: Test other option doc attrs --- lib/tests/modules/types-attrTag.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/tests/modules/types-attrTag.nix b/lib/tests/modules/types-attrTag.nix index 277d4cc4cc0b..ae676e347136 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..foo.bar".type == "signed integer"; assert config.docs."submodules..qux".type == "string"; + assert config.docs."submodules..qux".declarations == [ __curPos.file ]; + assert config.docs."submodules..qux".loc == [ "submodules" "" "qux" ]; + assert config.docs."submodules..qux".name == "submodules..qux"; + assert config.docs."submodules..qux".description == "A qux for when you don't want a foo"; + assert config.docs."submodules..qux".readOnly == false; + assert config.docs."submodules..qux".visible == true; + # Not available (yet?) + # assert config.docs."submodules..qux".declarationsWithPositions == [ ... ]; assert lib.length config.docs."merged..extensible".declarations == 2; true; }; -- cgit 1.4.1