(t *testing.T)
| 190 | } |
| 191 | |
| 192 | func TestHeaderGenerator_ContentValidation(t *testing.T) { |
| 193 | generator := &Generator{BaseName: "validation_test"} |
| 194 | headerGen := HeaderGenerator{generator} |
| 195 | content, err := headerGen.buildContent() |
| 196 | require.NoError(t, err) |
| 197 | |
| 198 | assert.Equal(t, 1, strings.Count(content, "#ifndef"), "Header should have exactly one #ifndef") |
| 199 | assert.Equal(t, 1, strings.Count(content, "#define"), "Header should have exactly one #define") |
| 200 | assert.Equal(t, 1, strings.Count(content, "#endif"), "Header should have exactly one #endif") |
| 201 | assert.False(t, strings.Contains(content, "{{") || strings.Contains(content, "}}"), "Generated header contains unresolved template syntax") |
| 202 | } |
| 203 | |
| 204 | func TestHeaderGenerator_SpecialCharacterHandling(t *testing.T) { |
| 205 | tests := []struct { |
nothing calls this directly
no test coverage detected