diff options
| author | Marc Jakobi <marc@jakobi.dev> | 2025-12-29 16:47:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-29 16:47:03 +0100 |
| commit | 7efc1b58a8061d29786860006c7257c90a5196dc (patch) | |
| tree | 4427743d84a353d6ea589f99b93eb133ebdbe536 /tests/query/injections | |
| parent | bot(parsers): update desktop, editorconfig, erlang, gotmpl, helm, lua, mlir, ... (diff) | |
| download | nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar.gz nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar.bz2 nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar.lz nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar.xz nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.tar.zst nvim-treesitter-7efc1b58a8061d29786860006c7257c90a5196dc.zip | |
fix(nix): refactor nixosTest injections for better performance (#8378)
Diffstat (limited to 'tests/query/injections')
| -rw-r--r-- | tests/query/injections/nix/test-nix-injections.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/query/injections/nix/test-nix-injections.nix b/tests/query/injections/nix/test-nix-injections.nix index b358326ab..7505398e6 100644 --- a/tests/query/injections/nix/test-nix-injections.nix +++ b/tests/query/injections/nix/test-nix-injections.nix @@ -1,7 +1,7 @@ # NOTE: This file is for testing queries. If evaluated with nix, this will probably error. -{ pkgs, stdenv }: let +{ pkgs, stdenv, lib }: let match = builtins.match; -in { +in { regex = builtins.match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ]; regex2 = match "^.*[{](.+)[}].*$" "blahblah {something} blahblah" [ "something" ]; @@ -12,7 +12,7 @@ in { echo "bar" > $out/foo.txt ''; }; - + drv2 = pkgs.writeShellApplication { name = "shellApp"; buildInputs = []; @@ -62,7 +62,7 @@ in { } ''; - drv12 = { + drv12 = lib.nixos.runTest { nodes = null; testScript = '' print("Hello world!"); |
