query
On this page

testEqualArrayOrMap

pkgs.testers.testEqualArrayOrMap

Functor
Docs pulled from | This Revision | 10 minutes ago

No reference documentation found yet.

Contribute now!


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

{
    name,
    valuesArray ? null,
    valuesMap ? null,
    expectedArray ? null,
    expectedMap ? null,
    script,
  }:
  assert lib.assertMsg (
    expectedArray != null || expectedMap != null
  ) "testEqualArrayOrMap: at least one of 'expectedArray' or 'expectedMap' must be provided";
  stdenvNoCC.mkDerivation {
    __structuredAttrs = true;
    strictDeps = true;

    inherit name;

    nativeBuildInputs = [
      ./assert-equal-array.sh
      ./assert-equal-map.sh
    ];

    inherit valuesArray valuesMap;
    inherit expectedArray expectedMap;

    inherit script;

    buildCommandPath = ./build-command.sh;
  }