/loupe

Golang test tools that make it easy to see small details

Primary LanguageGoApache License 2.0Apache-2.0

loupe

(/ˈluːp/ LOOP) is a simple, small magnification device used to see small details more closely.

Build Status codecov

Diff(a,b).String()

Diff any type and get color coded unified diffs for terminal output. Uses diffmatchpatch internally.

AssertDeepEqual(t, a, b, msg)

Use to compare large structs and get color coded unified diff output to the console while debugging.

Mock()

Test double for testing.T that captures TestResults including stdout.