Skip to content

Commit

Permalink
lib/tests: apply lints
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Apr 15, 2024
1 parent d864c36 commit 7b687a5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/tests/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ let
matchAttrs
mergeAttrs
meta
mkOption
mod
nameValuePair
optionalDrvAttr
Expand Down Expand Up @@ -118,7 +117,6 @@ let
expr = (builtins.tryEval expr).success;
expected = true;
};
testingDeepThrow = expr: testingThrow (builtins.deepSeq expr expr);

testSanitizeDerivationName = { name, expected }:
let
Expand Down Expand Up @@ -1416,7 +1414,7 @@ runTests {
};

testToPrettyMultiline = {
expr = mapAttrs (const (generators.toPretty { })) rec {
expr = mapAttrs (const (generators.toPretty { })) {
list = [ 3 4 [ false ] ];
attrs = { foo = null; bar.foo = "baz"; };
newlinestring = "\n";
Expand All @@ -1430,7 +1428,7 @@ runTests {
there
test'';
};
expected = rec {
expected = {
list = ''
[
3
Expand Down Expand Up @@ -1468,13 +1466,10 @@ runTests {
expected = "«foo»";
};

testToPlist =
let
deriv = derivation { name = "test"; builder = "/bin/sh"; system = "aarch64-linux"; };
in {
testToPlist = {
expr = mapAttrs (const (generators.toPlist { })) {
value = {
nested.values = rec {
nested.values = {
int = 42;
float = 0.1337;
bool = true;
Expand Down

0 comments on commit 7b687a5

Please sign in to comment.