github.com/ninadingole/gotest-ls@v0.0.3/tests/subtest_test.go (about)

     1  package tests_test
     2  
     3  import "testing"
     4  
     5  func Test_subTestPattern(t *testing.T) {
     6  	t.Parallel()
     7  
     8  	msg := "Hello, world!"
     9  
    10  	t.Run("subtest", func(t *testing.T) {
    11  		t.Parallel()
    12  		t.Log(msg)
    13  	})
    14  
    15  	t.Run("subtest 2", func(t *testing.T) {
    16  		t.Parallel()
    17  		t.Log("This is a subtest")
    18  	})
    19  }