LCOV - code coverage report
Current view: top level - source/simulation2/components - CCmpTest.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 99 114 86.8 %
Date: 2026-12-02 01:21:50 Functions: 50 57 87.7 %

Function Name Sort by function name Hit count Sort by hit count
RegisterComponentType_Test1A(CComponentManager&) 137
RegisterComponentType_Test1B(CComponentManager&) 137
RegisterComponentType_Test2A(CComponentManager&) 137
RegisterComponentType_Test1Scripted(CComponentManager&) 137
RegisterComponentType_Test2Scripted(CComponentManager&) 137
CCmpTest1A::Deallocate(IComponent*) 19
CCmpTest1A::Deserialize(CParamNode const&, IDeserializer&) 2
CCmpTest1A::HandleMessage(CMessage const&, bool) 11
CCmpTest1A::GetX() 31
CCmpTest1A::Init(CParamNode const&) 17
CCmpTest1A::Deinit() 19
CCmpTest1A::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 19
CCmpTest1A::ClassInit(CComponentManager&) 137
CCmpTest1A::Serialize(ISerializer&) 6
CCmpTest1B::Deallocate(IComponent*) 2
CCmpTest1B::Deserialize(CParamNode const&, IDeserializer&) 0
CCmpTest1B::HandleMessage(CMessage const&, bool) 3
CCmpTest1B::GetX() 6
CCmpTest1B::Init(CParamNode const&) 2
CCmpTest1B::Deinit() 2
CCmpTest1B::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 2
CCmpTest1B::Serialize(ISerializer&) 0
CCmpTest2A::Deallocate(IComponent*) 9
CCmpTest2A::Deserialize(CParamNode const&, IDeserializer&) 1
CCmpTest2A::HandleMessage(CMessage const&, bool) 6
CCmpTest2A::GetX() 18
CCmpTest2A::Init(CParamNode const&) 8
CCmpTest2A::Deinit() 9
CCmpTest2A::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 9
CCmpTest2A::Serialize(ISerializer&) 4
CCmpTest1Scripted::Deallocate(IComponent*) 37
CCmpTest1Scripted::Deserialize(CParamNode const&, IDeserializer&) 5
CCmpTest1Scripted::HandleMessage(CMessage const&, bool) 9
CCmpTest1Scripted::GetX() 46
CCmpTest1Scripted::Init(CParamNode const&) 32
CCmpTest1Scripted::Deinit() 37
CCmpTest1Scripted::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 37
CCmpTest1Scripted::ClassInit(CComponentManager&) 57
CCmpTest1Scripted::Serialize(ISerializer&) 10
CCmpTest1Scripted::CCmpTest1Scripted(Script::Interface const&, JS::Handle<JS::Value>) 37
CCmpTest2Scripted::Deallocate(IComponent*) 10
CCmpTest2Scripted::Deserialize(CParamNode const&, IDeserializer&) 0
CCmpTest2Scripted::HandleMessage(CMessage const&, bool) 1
CCmpTest2Scripted::GetX() 14
CCmpTest2Scripted::Init(CParamNode const&) 10
CCmpTest2Scripted::Deinit() 10
CCmpTest2Scripted::Allocate(Script::Interface const&, JS::Handle<JS::Value>) 10
CCmpTest2Scripted::ClassInit(CComponentManager&) 7
CCmpTest2Scripted::Serialize(ISerializer&) 0
CCmpTest2Scripted::CCmpTest2Scripted(Script::Interface const&, JS::Handle<JS::Value>) 10
CCmpTest1A::GetComponentTypeId() const 8
CCmpTest1B::GetComponentTypeId() const 0
CCmpTest2A::GetComponentTypeId() const 8
CCmpTest1Scripted::GetJSInstance() const 4
CCmpTest1Scripted::GetComponentTypeId() const 0
CCmpTest2Scripted::GetJSInstance() const 1
CCmpTest2Scripted::GetComponentTypeId() const 0

Generated by: LCOV version 1.16