Skip to content

LogstonEducation/dlv-unittest-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Delve Unit Test Demo

A very small failing unit test to demonstrate how to use dlv at the command line for debugging tests.

From the command line, run:

$ dlv test

Then in a dlv prompt, run this...

(dlv) break TestFibonacci

To list the tests available to break on, run this ...

(dlv) funcs TestFi*

To break on the inner test, run this...

(dlv) break TestFibonacci.func1

You can always break on a line number...

(dlv) break ./fib_test.go:24

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages