MCPcopy Index your code
hub / github.com/php/frankenphp / testCFileFunctions

Function testCFileFunctions

internal/extgen/cfile_test.go:338–343  ·  view source on GitHub ↗
(t *testing.T, content string, functions []phpFunction)

Source from the content-addressed store, hash-verified

336}
337
338func testCFileFunctions(t *testing.T, content string, functions []phpFunction) {
339 for _, fn := range functions {
340 phpFunc := "PHP_FUNCTION(" + fn.Name + ")"
341 assert.Contains(t, content, phpFunc, "C file should contain function declaration: %s", phpFunc)
342 }
343}
344
345func testCFileClasses(t *testing.T, content string, classes []phpClass) {
346 if len(classes) == 0 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected