MCPcopy Create free account
hub / github.com/buke/quickjs-go / ToString

Method ToString

atom.go:22–26  ·  view source on GitHub ↗

ToString returns the string representation of the atom.

()

Source from the content-addressed store, hash-verified

20
21// ToString returns the string representation of the atom.
22func (a *Atom) ToString() string {
23 ptr := C.JS_AtomToCString(a.ctx.ref, a.ref)
24 defer C.JS_FreeCString(a.ctx.ref, ptr)
25 return C.GoString(ptr)
26}
27
28// String returns the string representation of the atom.
29// This method implements the fmt.Stringer interface.

Callers 15

StringMethod · 0.95
TestAtomBasicsFunction · 0.95
TestAtomSpecialCasesFunction · 0.95
TestAtomMemoryManagementFunction · 0.95
TestAtomWithObjectsFunction · 0.95
TestAtomDeduplicationFunction · 0.95
TestAtomEdgeCasesFunction · 0.95
TestDeprecatedAtomAPIsFunction · 0.95
ToStringMethod · 0.45
TestContextFunctionsFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestAtomBasicsFunction · 0.76
TestAtomSpecialCasesFunction · 0.76
TestAtomMemoryManagementFunction · 0.76
TestAtomWithObjectsFunction · 0.76
TestAtomDeduplicationFunction · 0.76
TestAtomEdgeCasesFunction · 0.76
TestDeprecatedAtomAPIsFunction · 0.76
TestContextFunctionsFunction · 0.36
TestContextUtilitiesFunction · 0.36