1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-26 12:03:03 +03:00
digga/checks/lib/default.nix
2022-11-12 06:02:28 -05:00

27 lines
478 B
Nix

{
pkgs,
lib,
}:
with lib;
lib.runTests {
testRakeLeaves = {
expr = rakeLeaves ./profiles;
expected = {
f = ./profiles/f.nix;
foo = ./profiles/foo;
t = {
bar = ./profiles/t/bar.nix;
};
};
};
testFlattenTree = {
expr = flattenTree (rakeLeaves ./profiles);
expected = {
f = ./profiles/f.nix;
foo = ./profiles/foo;
"t.bar" = ./profiles/t/bar.nix;
};
};
}