@@ -165,13 +165,13 @@ func regularFunction() {
165165 assert .NotNil (t , module , "parse() should not return nil" )
166166 assert .Equal (t , tt .expected .InitFunc , module .InitFunc , "InitFunc mismatch" )
167167 assert .Equal (t , tt .expected .ShutdownFunc , module .ShutdownFunc , "ShutdownFunc mismatch" )
168-
168+
169169 // Check that function code was extracted
170170 if tt .expected .InitFunc != "" {
171171 assert .Contains (t , module .InitCode , "func " + tt .expected .InitFunc , "InitCode should contain function declaration" )
172172 assert .True (t , strings .HasSuffix (module .InitCode , "}\n " ), "InitCode should end with closing brace" )
173173 }
174-
174+
175175 if tt .expected .ShutdownFunc != "" {
176176 assert .Contains (t , module .ShutdownCode , "func " + tt .expected .ShutdownFunc , "ShutdownCode should contain function declaration" )
177177 assert .True (t , strings .HasSuffix (module .ShutdownCode , "}\n " ), "ShutdownCode should end with closing brace" )
@@ -221,9 +221,9 @@ func TestExtractGoFunction(t *testing.T) {
221221 parser := & ModuleParser {}
222222 scanner := bufio .NewScanner (strings .NewReader (tt .input ))
223223 scanner .Scan () // Read the first line
224-
224+
225225 name , code , err := parser .extractGoFunction (scanner , tt .firstLine )
226-
226+
227227 assert .NoError (t , err )
228228 assert .Equal (t , tt .expectedName , name )
229229 assert .True (t , strings .HasPrefix (code , tt .expectedPrefix ), "Function code should start with the declaration" )
@@ -234,9 +234,9 @@ func TestExtractGoFunction(t *testing.T) {
234234
235235func TestModuleParserFileErrors (t * testing.T ) {
236236 parser := & ModuleParser {}
237-
237+
238238 // Test with non-existent file
239239 module , err := parser .parse ("non_existent_file.go" )
240240 assert .Error (t , err , "parse() should return error for non-existent file" )
241241 assert .Nil (t , module , "parse() should return nil for non-existent file" )
242- }
242+ }
0 commit comments