MCPcopy Create free account
hub / github.com/nodejs/node / VisitObject

Function VisitObject

deps/v8/tools/generate-builtins-tests.py:99–107  ·  view source on GitHub ↗
(obj, path, options)

Source from the content-addressed store, hash-verified

97
98
99def VisitObject(obj, path, options):
100 obj_type = obj["type"]
101 obj_name = "%s%s" % (path, obj["name"])
102 if obj_type == "function":
103 BuildTests(obj, obj_name, options)
104 if "properties" in obj:
105 for prop_name in obj["properties"]:
106 prop = obj["properties"][prop_name]
107 VisitObject(prop, "%s." % (obj_name), options)
108
109
110def ClearGeneratedFiles(options):

Callers 1

GenerateTestsFunction · 0.85

Calls 1

BuildTestsFunction · 0.85

Tested by

no test coverage detected