github.com/daixiang0/gci@v0.13.0/pkg/section/standard_test.go (about) 1 package section 2 3 import ( 4 "testing" 5 6 "github.com/daixiang0/gci/pkg/specificity" 7 ) 8 9 func TestStandardPackageSpecificity(t *testing.T) { 10 testCases := []specificityTestData{ 11 {"context", Standard{}, specificity.StandardMatch{}}, 12 {"contexts", Standard{}, specificity.MisMatch{}}, 13 {"crypto", Standard{}, specificity.StandardMatch{}}, 14 {"crypto1", Standard{}, specificity.MisMatch{}}, 15 {"crypto/ae", Standard{}, specificity.MisMatch{}}, 16 {"crypto/aes", Standard{}, specificity.StandardMatch{}}, 17 {"crypto/aes2", Standard{}, specificity.MisMatch{}}, 18 } 19 testSpecificity(t, testCases) 20 }