modules/test: document possible types for expectation value

This commit is contained in:
Matt Sturgeon 2024-12-27 20:17:39 +00:00
parent e679ee91fa
commit e5974b316d
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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;