mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
16 lines
296 B
Nix
16 lines
296 B
Nix
|
{ pkgs, lib, self }:
|
||
|
|
||
|
lib.runTests {
|
||
|
testCountAttrs = {
|
||
|
expr = self.trivial.countAttrs (n: v: v?enable && v.enable) {
|
||
|
hello.enable = true;
|
||
|
what.enable = false;
|
||
|
atro.enable = true;
|
||
|
adelie = { };
|
||
|
world = "there";
|
||
|
mo = null;
|
||
|
};
|
||
|
expected = 2;
|
||
|
};
|
||
|
}
|