Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>tomatoNew to Visual Studio Code? Get it now.

tomato

duyq0519

|
985 installs
| (0) | Free
golang test case code generator
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tomato golang test code generator

How to use this extension?

Attention

  • You should first install tomato. Then install this extension

commands

These operations are copy from Go extension, but not totally same.

tomato.generate.function

  • Create first test function from selected functions
  • There is no limit for the function identifier, all the function matched

tomato.generate.file

  • Create test case for all the test case in selected file.
  • The matched function identifier is func GetUser(ctx *http_ctx.HttpCtx) error
  • The created test file name always like *fileName*_test.go
  • The extension will stop create test case functions if that specific test file already exists

tomato.generate.package

  • Create all the file in selected package
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft