Skip to content

Commit

Permalink
chore: add tests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
leoluz committed Jul 19, 2024
1 parent 49d9658 commit 3f15a31
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 3f15a31

Please sign in to comment.