-
Notifications
You must be signed in to change notification settings - Fork 47
Update UnitTestBot Go docs #2283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please consider the suggested changes.
docs/GoSupport.md
Outdated
@@ -15,14 +15,14 @@ inserts these values into the user functions, and executes the resulting test ca | |||
|
|||
### Supported types for function parameters | |||
|
|||
Now UnitTestBot Go can generate values for _primitive types_, _arrays_, _slices_ and _structs_. | |||
Now UnitTestBot Go can generate values for _primitive types_, _arrays_, _slices_, _maps_, _structs_, _channels_, _interfaces_ and _pointers_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now UnitTestBot Go can generate values for primitive types, arrays, slices, maps, structs, channels, interfaces, and pointers.
docs/GoSupport.md
Outdated
* `-f, --function TEXT`: specifies a function name to generate tests for. Can be used multiple times to select multiple functions. | ||
* `-m, --method TEXT`: specifies a method name to generate tests for. Can be used multiple times to select multiple methods. | ||
* `-go TEXT`, _required_: specifies a path to a Go executable. For example, `/usr/local/go/bin/go`. | ||
* `-gopath TEXT`, _required_: specifies a path the location of your workspace. It defaults to a directory named `go` inside your home directory, so `$HOME/go` on Unix, `$home/go` on Plan 9, and `%USERPROFILE%\go` (usually `C:\Users\YourName\go`) on Windows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-gopath TEXT
, required: specifies a path to your workspace location. It defaults to a directory namedgo
in your home directory:$HOME/go
for Unix,$home/go
for Plan 9, and%USERPROFILE%\go
(usuallyC:\Users\YourName\go
) for Windows.
docs/GoSupport.md
Outdated
* `-m, --method TEXT`: specifies a method name to generate tests for. Can be used multiple times to select multiple methods. | ||
* `-go TEXT`, _required_: specifies a path to a Go executable. For example, `/usr/local/go/bin/go`. | ||
* `-gopath TEXT`, _required_: specifies a path the location of your workspace. It defaults to a directory named `go` inside your home directory, so `$HOME/go` on Unix, `$home/go` on Plan 9, and `%USERPROFILE%\go` (usually `C:\Users\YourName\go`) on Windows. | ||
* `-parallel INT`: specifies the number of fuzzing processes running at once, default 8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-parallel INT
: specifies the number of fuzzing processes running at once (eight by default).
docs/GoSupport.md
Outdated
* `-et, --each-execution-timeout INT`: specifies a timeout in milliseconds for each target function execution. | ||
The default timeout is 1,000 ms. | ||
* `-at, --all-execution-timeout INT`: specifies a timeout in milliseconds for all target function executions. | ||
The default timeout is 60,000 ms. | ||
* `-p, --print-test`: specifies whether a test should be printed out to `StdOut`. Disabled by default. | ||
* `-w, --overwrite`: specifies whether to overwrite the output test file if it already exists. Disabled by default. | ||
* `-fm, --fuzzing-mode`: stops test generation when a panic, error or timeout occurs (only one test will be generated for one of these cases). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-fm, --fuzzing-mode
: stops test generation when apanic
situation, an error, or timeout occurs (only one test will be generated for one of these cases).
utbot-go/docs/DEVELOPER_GUIDE.md
Outdated
### Code instrumentation | ||
|
||
UnitTestBot Go adds logging about the passage of a given line during the execution | ||
after each line in functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After each line in a function, UnitTestBot Go adds logging about this line traversal during the execution.
utbot-go/docs/DEVELOPER_GUIDE.md
Outdated
UnitTestBot Go collects information about the target functions: | ||
* signatures and type information (in the basic version); | ||
* constants in the function bodies (to be implemented). | ||
UnitTestBot Go collects the size in bits of an int or uint value and information about the target functions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnitTestBot Go gains information about the int
or uint
value size in bits, and information about the target functions:
Description
Update UnitTestBot Go docs.
How to test
The PR introduces no code changes.
Manual scenario: the text itself has been previewed in the IntelliJ IDEA viewer.
Self-check list