@@ -1492,7 +1492,7 @@ mod tests {
14921492 assert ! ( skip_if_result) ;
14931493 }
14941494
1495- /// Test extract_rename_all fallback parsing (lines 44-47)
1495+ /// Test extract_rename_all fallback parsing
14961496 #[ test]
14971497 fn test_extract_rename_all_fallback_manual_parsing ( ) {
14981498 let tokens = quote ! ( rename_all = "kebab-case" ) ;
@@ -1638,7 +1638,7 @@ mod tests {
16381638 }
16391639
16401640 /// Test extract_field_rename - ensure rename_all is not matched as rename
1641- /// This tests the word boundary logic at lines 168-181
1641+ /// Test the word boundary logic
16421642 #[ test]
16431643 fn test_extract_field_rename_fallback_avoids_rename_all ( ) {
16441644 let tokens: TokenStream = "some::rename_all = \" camelCase\" " . parse ( ) . unwrap ( ) ;
@@ -1718,8 +1718,7 @@ mod tests {
17181718 /// Test extract_field_rename with form_data but no field_name key
17191719 #[ test]
17201720 fn test_extract_field_rename_form_data_no_field_name ( ) {
1721- let struct_src =
1722- r#"struct Foo { #[form_data(limit = "10MiB")] field: i32 }"# ;
1721+ let struct_src = r#"struct Foo { #[form_data(limit = "10MiB")] field: i32 }"# ;
17231722 let item: syn:: ItemStruct = syn:: parse_str ( struct_src) . unwrap ( ) ;
17241723 if let syn:: Fields :: Named ( fields) = & item. fields {
17251724 let field = fields. named . first ( ) . unwrap ( ) ;
@@ -1731,32 +1730,26 @@ mod tests {
17311730 /// Test extract_rename_all falls back to #[try_from_multipart(rename_all = "...")]
17321731 #[ test]
17331732 fn test_extract_rename_all_try_from_multipart_fallback ( ) {
1734- let item: syn:: ItemStruct = syn:: parse_str (
1735- r#"#[try_from_multipart(rename_all = "camelCase")] struct Foo;"# ,
1736- )
1737- . unwrap ( ) ;
1733+ let item: syn:: ItemStruct =
1734+ syn:: parse_str ( r#"#[try_from_multipart(rename_all = "camelCase")] struct Foo;"# )
1735+ . unwrap ( ) ;
17381736 let result = extract_rename_all ( & item. attrs ) ;
17391737 assert_eq ! ( result. as_deref( ) , Some ( "camelCase" ) ) ;
17401738 }
17411739
17421740 /// Test serde rename_all takes priority over try_from_multipart rename_all
17431741 #[ test]
17441742 fn test_extract_rename_all_serde_over_try_from_multipart ( ) {
1745- let item: syn:: ItemStruct = syn:: parse_str (
1746- r#"#[serde(rename_all = "snake_case")] #[try_from_multipart(rename_all = "camelCase")] struct Foo;"# ,
1747- )
1748- . unwrap ( ) ;
1743+ let item: syn:: ItemStruct = syn:: parse_str ( r#"#[serde(rename_all = "snake_case")] #[try_from_multipart(rename_all = "camelCase")] struct Foo;"# ) . unwrap ( ) ;
17491744 let result = extract_rename_all ( & item. attrs ) ;
17501745 assert_eq ! ( result. as_deref( ) , Some ( "snake_case" ) ) ;
17511746 }
17521747
17531748 /// Test extract_rename_all with try_from_multipart but no rename_all key
17541749 #[ test]
17551750 fn test_extract_rename_all_try_from_multipart_no_rename_all ( ) {
1756- let item: syn:: ItemStruct = syn:: parse_str (
1757- r#"#[try_from_multipart(strict)] struct Foo;"# ,
1758- )
1759- . unwrap ( ) ;
1751+ let item: syn:: ItemStruct =
1752+ syn:: parse_str ( r#"#[try_from_multipart(strict)] struct Foo;"# ) . unwrap ( ) ;
17601753 let result = extract_rename_all ( & item. attrs ) ;
17611754 assert_eq ! ( result, None ) ;
17621755 }
@@ -2047,7 +2040,7 @@ mod tests {
20472040 }
20482041 }
20492042
2050- /// Test extract_tag with non-list serde attribute (line 524)
2043+ /// Test extract_tag with non-list serde attribute
20512044 /// When require_list() fails, extract_tag should continue to next attribute
20522045 #[ test]
20532046 fn test_extract_tag_non_list_attr_continues ( ) {
@@ -2064,15 +2057,15 @@ mod tests {
20642057 assert_eq ! ( result. as_deref( ) , Some ( "type" ) ) ;
20652058 }
20662059
2067- /// Test extract_tag with only non-list serde attribute returns None (line 524)
2060+ /// Test extract_tag with only non-list serde attribute returns None
20682061 #[ test]
20692062 fn test_extract_tag_only_non_list_attr_returns_none ( ) {
20702063 let path_attr = create_path_only_serde_attr ( ) ;
20712064 let result = extract_tag ( & [ path_attr] ) ;
20722065 assert_eq ! ( result, None ) ;
20732066 }
20742067
2075- /// Test extract_content with non-list serde attribute (line 574)
2068+ /// Test extract_content with non-list serde attribute
20762069 /// When require_list() fails, extract_content should continue to next attribute
20772070 #[ test]
20782071 fn test_extract_content_non_list_attr_continues ( ) {
@@ -2089,7 +2082,7 @@ mod tests {
20892082 assert_eq ! ( result. as_deref( ) , Some ( "data" ) ) ;
20902083 }
20912084
2092- /// Test extract_content with only non-list serde attribute returns None (line 574)
2085+ /// Test extract_content with only non-list serde attribute returns None
20932086 #[ test]
20942087 fn test_extract_content_only_non_list_attr_returns_none ( ) {
20952088 let path_attr = create_path_only_serde_attr ( ) ;
0 commit comments