again update

This commit is contained in:
Smirnov Oleksandr 2024-03-02 01:32:16 +02:00
parent 3d6c7cc3ef
commit 6df060eece

View file

@ -53,9 +53,6 @@ require("gopher").setup {
} }
``` ```
>[!NOTE]
>
<details> <details>
<summary> <summary>
For named tests to work you have to install gotests from develop branch. Next code snippets could be placed into the build step in the Lazy plugin declaration For named tests to work you have to install gotests from develop branch. Next code snippets could be placed into the build step in the Lazy plugin declaration
@ -112,7 +109,7 @@ require("gopher").setup {
``` ```
```lua ```lua
--- or you can use lua api -- or you can use lua api
require("gopher").tags.add "xml" require("gopher").tags.add "xml"
require("gopher").tags.rm "proto" require("gopher").tags.rm "proto"
``` ```
@ -130,13 +127,15 @@ require("gopher").setup {
" Generate all tests for all functions/methods in the current file " Generate all tests for all functions/methods in the current file
:GoTestsAll :GoTestsAll
" Generate tests only for exported functions/methods in the current file: " Generate tests for only exported functions/methods in the current file
:GoTestsExp :GoTestsExp
``` ```
```lua ```lua
--- or you can use lua api -- or you can use lua api
require("gopher").test.add() require("gopher").test.add()
require("gopher").test.exported()
require("gopher").test.all()
``` ```
</details> </details>