LCOV - code coverage report
Current view: top level - source/scriptinterface - ScriptInterface.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 246 353 69.7 %
Date: 2023-01-19 00:18:29 Functions: 38 43 88.4 %

Function Name Sort by function name Hit count Sort by hit count
_GLOBAL__sub_I_ScriptInterface.cpp 1
__static_initialization_and_destruction_0(int, int) 1
(anonymous namespace)::deepfreeze(ScriptInterface const&, JS::Handle<JS::Value>) 262
(anonymous namespace)::ProfileStop() 5
(anonymous namespace)::ProfileStart(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) 5
(anonymous namespace)::ProfileAttribute(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) 0
(anonymous namespace)::warn(JSContext*, unsigned int, JS::Value*) 1
(anonymous namespace)::error(JSContext*, unsigned int, JS::Value*) 0
(anonymous namespace)::print(JSContext*, unsigned int, JS::Value*) 0
(anonymous namespace)::logmsg(JSContext*, unsigned int, JS::Value*) 0
(anonymous namespace)::deepcopy(ScriptRequest const&, JS::Handle<JS::Value>) 330
(anonymous namespace)::generate_uniform_real(boost::random::rand48&, double, double) 89
ScriptRequest::ScriptRequest(JSContext*) 1302
ScriptRequest::ScriptRequest(ScriptInterface const&) 35230
ScriptRequest::~ScriptRequest() 35230
ScriptInterface::SetGlobal_(char const*, JS::Handle<JS::Value>, bool, bool, bool) 10927
ScriptInterface::CmptPrivate::GetScriptInterface(JSContext*) 1389
ScriptInterface::CmptPrivate::GetCBData(JSContext*) 1174
ScriptInterface::Math_random(JSContext*, unsigned int, JS::Value*) 87
ScriptInterface::SetPrototype(JS::Handle<JS::Value>, JS::Handle<JS::Value>) 5
ScriptInterface::SetCallbackData(void*) 150
void* ScriptInterface::ObjectFromCBData<void>(ScriptRequest const&) 587
ScriptInterface::GetGlobalProperty(ScriptRequest const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, JS::MutableHandle<JS::Value>) 19
ScriptInterface::LoadGlobalScripts() 198
ScriptInterface::DefineCustomObjectType(JSClass*, bool (*)(JSContext*, unsigned int, JS::Value*), unsigned int, JSPropertySpec*, JSFunctionSpec*, JSPropertySpec*, JSFunctionSpec*) 5696
ScriptInterface::ReplaceNondeterministicRNG(boost::random::rand48&) 136
ScriptInterface::ScriptInterface(char const*, char const*, ScriptInterface const&) 0
ScriptInterface::ScriptInterface(char const*, char const*, std::shared_ptr<ScriptContext> const&) 282
ScriptInterface::~ScriptInterface() 282
ScriptInterface_impl::ScriptInterface_impl(char const*, std::shared_ptr<ScriptContext> const&, JS::Compartment*) 282
ScriptInterface_impl::~ScriptInterface_impl() 282
ScriptRequest::globalValue() const 73
ScriptRequest::GetScriptInterface() const 818
ScriptInterface::GetContext() const 7
ScriptInterface::LoadScript(Path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const 698
ScriptInterface::MathRandom(double&) const 89
ScriptInterface::CallConstructor(JS::Handle<JS::Value>, JS::HandleValueArray, JS::MutableHandle<JS::Value>) const 49
ScriptInterface::LoadGlobalScript(Path const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const 1701
ScriptInterface::CreateCustomObject(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const 1
ScriptInterface::GetGeneralJSContext() const 1
ScriptInterface::LoadGlobalScriptFile(Path const&) const 1701
ScriptInterface::Eval(char const*) const 2
ScriptInterface::Eval(char const*, JS::MutableHandle<JS::Value>) const 66

Generated by: LCOV version 1.13