@@ -159,7 +159,7 @@ func TestValueEnumCodeGen(t *testing.T) {
159159 contains : []string {
160160 "type Status int" ,
161161 "StatusPending Status = iota" ,
162- "\t StatusActive\n " , // No type on subsequent iota lines
162+ "\t StatusActive\n " , // No type on subsequent iota lines
163163 "\t StatusClosed\n " ,
164164 "const (" ,
165165 },
@@ -219,7 +219,7 @@ func TestValueEnumCodeGen(t *testing.T) {
219219func TestValueEnumWithPrefix (t * testing.T ) {
220220 // Test @prefix(false) attribute
221221 decl := & ValueEnumDecl {
222- Name : & Ident {Name : "Status" },
222+ Name : & Ident {Name : "Status" },
223223 BaseType : & TypeExpr {Text : "int" },
224224 Variants : []* ValueEnumVariant {
225225 {Name : & Ident {Name : "Pending" }},
@@ -307,7 +307,7 @@ func TestTransformValueEnumSource(t *testing.T) {
307307 contains : []string {
308308 "type Status int" ,
309309 "StatusPending Status = iota" ,
310- "\t StatusActive\n " , // Second line should just be the name
310+ "\t StatusActive\n " , // Second line should just be the name
311311 },
312312 },
313313 {
@@ -331,7 +331,7 @@ func TestTransformValueEnumSource(t *testing.T) {
331331 src : "package main\n \n enum Status: int { Active }\n enum Result { Ok(T) }\n " ,
332332 contains : []string {
333333 "type Status int" ,
334- "StatusActive Status = iota" , // Single variant still gets full declaration
334+ "StatusActive Status = iota" , // Single variant still gets full declaration
335335 "type Result interface" ,
336336 },
337337 },
@@ -665,7 +665,7 @@ func TestTransformWithPrefixAttribute(t *testing.T) {
665665 "\t StatusActive\n " ,
666666 },
667667 notContain : []string {
668- "\t Pending Status" , // Should NOT have unprefixed
668+ "\t Pending Status" , // Should NOT have unprefixed
669669 },
670670 },
671671 {
@@ -746,33 +746,33 @@ func TestTransformWithPrefixAttribute(t *testing.T) {
746746
747747func TestFindAttributeStart (t * testing.T ) {
748748 tests := []struct {
749- name string
750- src string
751- enumStart int
749+ name string
750+ src string
751+ enumStart int
752752 expectDeclStart int
753753 }{
754754 {
755- name : "no attribute" ,
756- src : "enum Status: int { }" ,
757- enumStart : 0 ,
755+ name : "no attribute" ,
756+ src : "enum Status: int { }" ,
757+ enumStart : 0 ,
758758 expectDeclStart : 0 ,
759759 },
760760 {
761- name : "attribute on same line" ,
762- src : "@prefix(false) enum Status: int { }" ,
763- enumStart : 15 ,
761+ name : "attribute on same line" ,
762+ src : "@prefix(false) enum Status: int { }" ,
763+ enumStart : 15 ,
764764 expectDeclStart : 0 ,
765765 },
766766 {
767- name : "attribute on previous line" ,
768- src : "@prefix(false)\n enum Status: int { }" ,
769- enumStart : 15 ,
767+ name : "attribute on previous line" ,
768+ src : "@prefix(false)\n enum Status: int { }" ,
769+ enumStart : 15 ,
770770 expectDeclStart : 0 ,
771771 },
772772 {
773- name : "attribute with spaces" ,
774- src : "@prefix(false) enum Status: int { }" ,
775- enumStart : 16 ,
773+ name : "attribute with spaces" ,
774+ src : "@prefix(false) enum Status: int { }" ,
775+ enumStart : 16 ,
776776 expectDeclStart : 0 ,
777777 },
778778 }
0 commit comments