Skip to content

Commit

Permalink
feat: identifier support for subtests (#93)
Browse files Browse the repository at this point in the history
* fix(sub-tests): supports subtests with an identifier

* chore: add tests folder

---------

Co-authored-by: Florent Cigolotti <[email protected]>
  • Loading branch information
leoluz and Florent Cigolotti authored Jul 19, 2024
1 parent 3999f07 commit 8e5b23f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/leoluz/nvim-dap-go

go 1.22.2
12 changes: 12 additions & 0 deletions tests/subtest_bar_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package tests

import (
"testing"
)

// https://github.com/leoluz/nvim-dap-go/pull/82
func TestWithSubTests(t *testing.T) {
t.Run("subtest with function literal", func(t *testing.T) { t.Fail() })
myFunc := func(t *testing.T) { t.FailNow() }
t.Run("subtest with identifier", myFunc)
}

0 comments on commit 8e5b23f

Please sign in to comment.