diff options
author | Robert Hensing <robert@roberthensing.nl> | 2021-05-05 18:53:28 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2021-05-05 18:53:28 +0200 |
commit | e7412dde1f0a3d141839f05f5a06a12df84dc2c6 (patch) | |
tree | a77803435b56b951ed907ab5baa8fc3576e305ed /lib/tests/modules | |
parent | 2f6d1c7722113378b470fc4f9c2fcb38a6c1d155 (diff) |
Revert "lib/tests: Add type deprecation tests"
This reverts commit 8b957e3b301d748e6fbbed806d82bd9d4b9d4ac4.
Diffstat (limited to 'lib/tests/modules')
-rw-r--r-- | lib/tests/modules/type-deprecation.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/tests/modules/type-deprecation.nix b/lib/tests/modules/type-deprecation.nix deleted file mode 100644 index 2d7a1fc9aca59..0000000000000 --- a/lib/tests/modules/type-deprecation.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib, ... }: { - - options.simple = lib.mkOption { - type = lib.mkOptionType { - name = "simple"; - deprecationMessage = "simple shall not be used"; - }; - default = throw ""; - }; - - options.infinite = lib.mkOption { - type = - let - t = lib.mkOptionType { - name = "infinite"; - deprecationMessage = "infinite shall not be used"; - }; - r = lib.types.either t (lib.types.attrsOf r); - in r; - default = throw ""; - }; - - options.nested = lib.mkOption { - type = - let - left = lib.mkOptionType { - name = "left"; - deprecationMessage = "left shall not be used"; - }; - right = lib.mkOptionType { - name = "right"; - deprecationMessage = "right shall not be used"; - }; - in lib.types.either left right; - - default = throw ""; - }; - -} |