@@ -44,11 +44,6 @@ func TestHeaderGenerator_BuildContent(t *testing.T) {
4444 "#define _SIMPLE_H" ,
4545 "#include <php.h>" ,
4646 "extern zend_module_entry ext_module_entry;" ,
47- "typedef struct go_value go_value;" ,
48- "typedef struct go_string {" ,
49- "size_t len;" ,
50- "char *data;" ,
51- "} go_string;" ,
5247 "#endif" ,
5348 },
5449 },
@@ -134,11 +129,6 @@ func TestHeaderGenerator_BasicStructure(t *testing.T) {
134129 expectedElements := []string {
135130 "#include <php.h>" ,
136131 "extern zend_module_entry ext_module_entry;" ,
137- "typedef struct go_value go_value;" ,
138- "typedef struct go_string {" ,
139- "size_t len;" ,
140- "char *data;" ,
141- "} go_string;" ,
142132 }
143133
144134 for _ , element := range expectedElements {
@@ -209,9 +199,6 @@ func TestHeaderGenerator_ContentValidation(t *testing.T) {
209199 assert .Equal (t , 1 , strings .Count (content , "#define" ), "Header should have exactly one #define" )
210200 assert .Equal (t , 1 , strings .Count (content , "#endif" ), "Header should have exactly one #endif" )
211201 assert .False (t , strings .Contains (content , "{{" ) || strings .Contains (content , "}}" ), "Generated header contains unresolved template syntax" )
212- assert .Contains (t , content , "typedef struct go_string {" , "Header should contain go_string typedef" )
213- assert .Contains (t , content , "size_t len;" , "Header should contain len field in go_string" )
214- assert .Contains (t , content , "char *data;" , "Header should contain data field in go_string" )
215202}
216203
217204func TestHeaderGenerator_SpecialCharacterHandling (t * testing.T ) {
@@ -278,7 +265,6 @@ func TestHeaderGenerator_MinimalContent(t *testing.T) {
278265 "#define _MINIMAL_H" ,
279266 "#include <php.h>" ,
280267 "extern zend_module_entry ext_module_entry;" ,
281- "typedef struct go_value go_value;" ,
282268 "#endif" ,
283269 }
284270
@@ -302,11 +288,6 @@ func testHeaderBasicStructure(t *testing.T, content, baseName string) {
302288 "#define _" + headerGuard ,
303289 "#include <php.h>" ,
304290 "extern zend_module_entry ext_module_entry;" ,
305- "typedef struct go_value go_value;" ,
306- "typedef struct go_string {" ,
307- "size_t len;" ,
308- "char *data;" ,
309- "} go_string;" ,
310291 "#endif" ,
311292 }
312293
0 commit comments