(t *testing.T)
| 450 | } |
| 451 | |
| 452 | func TestCFileTemplateErrorHandling(t *testing.T) { |
| 453 | generator := &Generator{ |
| 454 | BaseName: "error_test", |
| 455 | } |
| 456 | |
| 457 | cGen := cFileGenerator{generator} |
| 458 | |
| 459 | _, err := cGen.getTemplateContent() |
| 460 | assert.NoError(t, err, "getTemplateContent() should not fail with valid template") |
| 461 | } |
| 462 | |
| 463 | func TestEscapeCString(t *testing.T) { |
| 464 | tests := []struct { |
nothing calls this directly
no test coverage detected