Coverage Report

Created: 2025-09-03 03:49

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/nix/store/i1aar97n7b4yf8rk94p66if25brfvvdx-gqvzl8a5pvrg3xj44q0msrndcripi8dk-source/src/scoring/yakus.cc
Line
Count
Source
1
#include "scoring/yakus.h"
2
#include <vector>
3
#include "types/yaku.h"
4
5
namespace mahjong {
6
1
const std::vector<Yaku>& Yakus::GetYakus() {
7
1
  return yakus_;
8
1
}
9
5.77k
bool Yakus::RegisterYaku(const Yaku& yaku) {
10
5.77k
  yakus_.push_back(yaku);
11
5.77k
  return true;
12
5.77k
}
13
156
bool Yakus::RegisterYakus(const std::vector<Yaku>& yakus) {
14
780
  for (const auto& yaku : yakus) {
15
780
    yakus_.push_back(yaku);
16
780
  }
17
156
  return true;
18
156
}
19
}  // namespace mahjong