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

     1  package section
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/daixiang0/gci/pkg/specificity"
     7  )
     8  
     9  func TestDefaultSpecificity(t *testing.T) {
    10  	testCases := []specificityTestData{
    11  		{`""`, Default{}, specificity.Default{}},
    12  		{`"x"`, Default{}, specificity.Default{}},
    13  	}
    14  	testSpecificity(t, testCases)
    15  }
    16  
    17  // func TestDefaultSectionParsing(t *testing.T) {
    18  // 	testCases := []sectionTestData{
    19  // 		{"def", Default{}, nil},
    20  // 		{"defAult(invalid)", nil, SectionTypeDoesNotAcceptParametersError},
    21  // 	}
    22  // 	testSectionParser(t, testCases)
    23  // }
    24  
    25  // func TestDefaultSectionToString(t *testing.T) {
    26  // 	testSectionToString(t, Default{})
    27  // }