GCC Code Coverage Report


Directory: src/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 6 / 0 / 6
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 2 / 0 / 4

ps/base/parameters.cpp
Line Branch Exec Source
1 #include "base/flatc.h"
2 #include "parameters.h"
3
4 1684 void Pack<ParameterCompressItem>::CompressAppend(std::string* output) const {
5 ParameterCompressItem item;
6 1684 item.key = key;
7 1684 item.dim = dim;
8
1/2
✓ Branch 1 taken 1684 times.
✗ Branch 2 not taken.
1684 output->append(
9 reinterpret_cast<const char*>(&item), sizeof(ParameterCompressItem));
10
1/2
✓ Branch 1 taken 1684 times.
✗ Branch 2 not taken.
1684 output->append(reinterpret_cast<const char*>(emb_data), dim * sizeof(float));
11 1684 };
12