MCPcopy Create free account
hub / github.com/php/frankenphp / TestDocumentationGenerator_TemplateError

Function TestDocumentationGenerator_TemplateError

internal/extgen/docs_test.go:321–341  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

319}
320
321func TestDocumentationGenerator_TemplateError(t *testing.T) {
322 generator := &Generator{
323 BaseName: "test",
324 Functions: []phpFunction{
325 {
326 Name: "test",
327 ReturnType: phpString,
328 Signature: "test(): string",
329 },
330 },
331 Classes: []phpClass{},
332 }
333
334 docGen := &DocumentationGenerator{
335 generator: generator,
336 }
337
338 result, err := docGen.generateMarkdown()
339 assert.NoError(t, err, "generateMarkdown() unexpected error")
340 assert.NotEmpty(t, result, "generateMarkdown() returned empty result")
341}
342
343func BenchmarkDocumentationGenerator_GenerateMarkdown(b *testing.B) {
344 generator := &Generator{

Callers

nothing calls this directly

Calls 1

generateMarkdownMethod · 0.95

Tested by

no test coverage detected