1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

test: Fix shifted source positions after formatting

This commit is contained in:
Robert Hensing 2025-01-24 21:32:07 +01:00
parent 2f1b70a529
commit ae0bb7d71c
39 changed files with 332 additions and 319 deletions

View file

@ -10,25 +10,27 @@ error: value does not have documentation
nix-repl> :doc lib.version
Attribute `version`
… defined at /path/to/tests/functional/repl/doc-comments.nix:30:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:47:3
Immovably fixed.
nix-repl> :doc lib.attr.empty
Attribute `empty`
… defined at /path/to/tests/functional/repl/doc-comments.nix:33:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:52:3
Unchangeably constant.
nix-repl> :doc lib.attr.undocument
error:
… while evaluating the attribute 'attr.undocument'
at /path/to/tests/functional/repl/doc-comments.nix:33:3:
32| /** Unchangeably constant. */
33| lib.attr.empty = { };
at /path/to/tests/functional/repl/doc-comments.nix:52:3:
51| */
52| lib.attr.empty = { };
| ^
34|
53|
error: attribute 'undocument' missing
at «string»:1:1:
@ -39,28 +41,31 @@ error:
nix-repl> :doc (import ./doc-comments.nix).constant
Attribute `constant`
… defined at /path/to/tests/functional/repl/doc-comments.nix:27:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:42:3
Firmly rigid.
nix-repl> :doc (import ./doc-comments.nix).lib.version
Attribute `version`
… defined at /path/to/tests/functional/repl/doc-comments.nix:30:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:47:3
Immovably fixed.
nix-repl> :doc (import ./doc-comments.nix).lib.attr.empty
Attribute `empty`
… defined at /path/to/tests/functional/repl/doc-comments.nix:33:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:52:3
Unchangeably constant.
nix-repl> :doc (import ./doc-comments.nix).lib.attr.undocumented
Attribute `undocumented`
… defined at /path/to/tests/functional/repl/doc-comments.nix:35:3
… defined at /path/to/tests/functional/repl/doc-comments.nix:54:3
No documentation found.
@ -97,11 +102,11 @@ error: attribute 'missing' missing
nix-repl> :doc lib.attr.undocumental
error:
… while evaluating the attribute 'attr.undocumental'
at /path/to/tests/functional/repl/doc-comments.nix:33:3:
32| /** Unchangeably constant. */
33| lib.attr.empty = { };
at /path/to/tests/functional/repl/doc-comments.nix:52:3:
51| */
52| lib.attr.empty = { };
| ^
34|
53|
error: attribute 'undocumental' missing
at «string»:1:1: