CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/golang-github-com-onsi-ginkgo-v2

A mature testing framework for Go designed to help you write expressive specs

Overall
score

97%

Overview
Eval results
Files

task.mdevals/scenario-10/

Test Suite with Execution Tracing

A test suite that validates a simple calculator module with execution trace generation enabled. The test suite should use the testing framework's built-in support for generating execution traces to help identify performance issues and analyze concurrency patterns.

Capabilities

Calculator Tests with Tracing

  • When tests run with tracing enabled, an execution trace file "execution-trace.out" is generated @test
  • Addition of two positive integers returns the correct sum (e.g., 2 + 3 = 5) @test
  • Multiplication of two integers returns the correct product (e.g., 4 * 5 = 20) @test

Implementation

@generates

API

package calculator

// Add returns the sum of two integers
func Add(a, b int) int

// Multiply returns the product of two integers
func Multiply(a, b int) int

Dependencies { .dependencies }

Ginkgo v2 { .dependency }

Provides BDD testing framework with execution trace support for performance analysis.

@satisfied-by

Gomega { .dependency }

Provides matcher/assertion library for writing test assertions.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/golang-github-com-onsi-ginkgo-v2

tile.json