Skip to content

Commit

Permalink
modules/test: document possible types for expectation value
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Dec 27, 2024
1 parent e679ee9 commit e5974b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/top-level/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ let
if config.expect == null then
lib.types.unspecified
// {
description = "defined by `expect`";
description = ''
Depends on `expect`:
${lib.concatStringsSep "\n" (
lib.mapAttrsToList (
name: spec: "- ${builtins.toJSON name}: ${spec.valueType.description}"
) cfg.namedExpectationPredicates
)}
'';
}
else
namedPredicate.valueType;
Expand Down

0 comments on commit e5974b3

Please sign in to comment.