Skip to content

a repo dedicated to projects and examples dedicated to learning go concurrency

Notifications You must be signed in to change notification settings

prakash-joshi/go-concurrency

Repository files navigation

Test Commands 🛠️

Here are the essential commands for running and analyzing Go test cases:

Basic Testing

go test -v -cover ./...

Runs all tests recursively with verbose output and displays coverage in terminal.

Race Condition Testing

go test -race .

Executes test cases with race condition detection in the current directory.

go test -race -v .

Same as above but with verbose output for detailed test execution information.

Coverage Analysis

go test -coverprofile=coverage.out

Generates a coverage profile file (coverage.out) for detailed analysis.

go tool cover -html=coverage.out

Creates an interactive HTML report from the coverage profile, allowing visual exploration of test coverage in your browser.

Project Contents 🧭

This repository contains the following implementations:

About

a repo dedicated to projects and examples dedicated to learning go concurrency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published