nxt_unit
nxt_unit copied to clipboard
NxtUnit is an automatically unit test generation application for Go.
nxt_unit -usage=plugin -min_unit=file -file_path=api/handler/instance/instance.go -use_mock_type=2 Getting the below error internalerrorstring(the error belongs to Error Code is P3045, cannot find tested function. , the detail is SSA Function Not found;)-r
## Description While triaging your project, our bug fixing tool generated the following message- > In file: [analyser.go](https://github.com/bytedance/nxt_unit/blob/main/manager/reporter/analyser.go#L133), there's a regular expression that has a dot before "com". When this...
## Summary This PR fixes a concurrency related bug in your codebase. ## Description While triaging your project, our bug fixing tool generated the following message(s)- > In File: [retry.go](https://github.com/bytedance/nxt_unit/blob/main/atghelper/utils/retry.go#L55),...
## Summary This PR fixes a logical bug in your codebase. ## Description While triaging your project, our bug fixing tool generated the following message(s)- > In file: [faker.go](https://github.com/bytedance/nxt_unit/blob/main/faker/faker.go#L398), a...
go build ./nxt_unit -file_path=[your path] -receiver_name=Decoder -receiver_is_star=true -function_name=Decode -usage=plugin -go=/usr/local/go/bin/go
unable to generate test cases (panic: invalid memory address (StdSizes nil) when running on go file)
ran this: ``` ~/go/bin/nxt_unit \ -file_path=/home/user/project/message.go \ -directory_path=/home/user/project \ -receiver_name=Message \ -function_name=Decode \ -receiver_is_start \ -usage=plugin ``` crashes with: ``` panic: runtime error: invalid memory address or nil pointer dereference...