Skip to content

hermanschaaf/coverrace

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

CoverRace

This is a simple demonstration of the perils of running go test -cover -race, i.e. the Go cover tool with the Go race detector at the same time. The lesson is to always also add the -covermode=atomic flag, like this: go test -cover -covermode=atomic -race.

For a full explanation, refer to the blog post on http://herman.asia

About

A simple demonstration of the perils of using -cover and -race together

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages