CODESEEDSign in
Explore projects
Goadvancedai

Intelligent Test Generator

Go tool that analyzes Go source code with AST parsing, identifies untested functions, and generates unit tests with LLM via Anthropic API.

5 steps

Project steps

  1. 01

    AST analysis

    Parses Go files, identifies public functions without test coverage.

  2. 02

    Coverage check

    Runs go test -cover programmatically, extracts functions with 0% coverage.

  3. 03

    Context extraction

    Extracts function signature, parameter types, and return values as context.

  4. 04

    LLM generation

    Sends context to Claude, requests generation of table-driven tests.

  5. 05

    Validate & write

    Compiles generated tests (go vet), writes the _test.go file if valid.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

Gogo/astgo/parsercobraanthropic-sdk-go