github.com/daixiang0/gci@v0.13.4/pkg/section/commentline_test.go (about)

     1  package section
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/daixiang0/gci/pkg/specificity"
     7  )
     8  
     9  func TestCommentLineSpecificity(t *testing.T) {
    10  	testCases := []specificityTestData{
    11  		{`""`, CommentLine{""}, specificity.MisMatch{}},
    12  		{`"x"`, CommentLine{""}, specificity.MisMatch{}},
    13  		{`"//"`, CommentLine{""}, specificity.MisMatch{}},
    14  		{`"/"`, CommentLine{""}, specificity.MisMatch{}},
    15  	}
    16  	testSpecificity(t, testCases)
    17  }
    18  
    19  // func TestCommentLineToString(t *testing.T) {
    20  // 	testSectionToString(t, CommentLine{""})
    21  // 	testSectionToString(t, CommentLine{"abc"})
    22  // }