lib.attrsets.concatMapAttrs: add test for handling duplicates

(cherry picked from commit f3e6fa555f)
This commit is contained in:
Eman Resu 2026-06-21 18:04:34 -04:00 committed by github-actions[bot]
commit 23b3177402

View file

@ -2164,6 +2164,21 @@ runTests {
};
};
testConcatMapAttrsDuplicates = {
expr =
concatMapAttrs
(name: value: {
final = value;
})
{
a = 1;
b = 2;
};
expected = {
final = 2;
};
};
testFilterAttrs = {
expr = filterAttrs (n: v: n != "a" && (v.hello or false) == true) {
a.hello = true;