• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thetic / mutiny / 24573089316

17 Apr 2026 03:28PM UTC coverage: 97.192% (-1.4%) from 98.629%
24573089316

Pull #59

github

web-flow
Merge 7426fcdfb into e0583988c
Pull Request #59: Disunity

1 of 3 new or added lines in 2 files covered. (33.33%)

74 existing lines in 7 files now uncovered.

4984 of 5128 relevant lines covered (97.19%)

3235.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.63
/src/test/CompositeOutput.cpp
1
#include "mutiny/test/CompositeOutput.hpp"
2

3
namespace mu {
4
namespace tiny {
5
namespace test {
6

7
CompositeOutput::~CompositeOutput()
2✔
8
{
9
  delete output_one_;
1✔
10
  delete output_two_;
1✔
11
}
2✔
12

13
void CompositeOutput::set_output_one(Output* output)
1✔
14
{
15
  delete output_one_;
1✔
16
  output_one_ = output;
1✔
17
}
1✔
18

19
void CompositeOutput::set_output_two(Output* output)
1✔
20
{
21
  delete output_two_;
1✔
22
  output_two_ = output;
1✔
23
}
1✔
24

25
void CompositeOutput::print_tests_started()
1✔
26
{
27
  if (output_one_)
1✔
28
    output_one_->print_tests_started();
1✔
29
  if (output_two_)
1✔
30
    output_two_->print_tests_started();
1✔
31
}
1✔
32

33
void CompositeOutput::print_tests_ended(const Result& result)
1✔
34
{
35
  if (output_one_)
1✔
36
    output_one_->print_tests_ended(result);
1✔
37
  if (output_two_)
1✔
38
    output_two_->print_tests_ended(result);
1✔
39
}
1✔
40

41
void CompositeOutput::print_current_test_started(const Shell& test)
1✔
42
{
43
  if (output_one_)
1✔
44
    output_one_->print_current_test_started(test);
1✔
45
  if (output_two_)
1✔
46
    output_two_->print_current_test_started(test);
1✔
47
}
1✔
48

49
void CompositeOutput::print_current_test_ended(const Result& res)
1✔
50
{
51
  if (output_one_)
1✔
52
    output_one_->print_current_test_ended(res);
1✔
53
  if (output_two_)
1✔
54
    output_two_->print_current_test_ended(res);
1✔
55
}
1✔
56

57
void CompositeOutput::print_current_group_started(const Shell& test)
1✔
58
{
59
  if (output_one_)
1✔
60
    output_one_->print_current_group_started(test);
1✔
61
  if (output_two_)
1✔
62
    output_two_->print_current_group_started(test);
1✔
63
}
1✔
64

65
void CompositeOutput::print_current_group_ended(const Result& res)
1✔
66
{
67
  if (output_one_)
1✔
68
    output_one_->print_current_group_ended(res);
1✔
69
  if (output_two_)
1✔
70
    output_two_->print_current_group_ended(res);
1✔
71
}
1✔
72

73
void CompositeOutput::verbose(MutinyVerbosityLevel level)
1✔
74
{
75
  if (output_one_)
1✔
76
    output_one_->verbose(level);
1✔
77
  if (output_two_)
1✔
78
    output_two_->verbose(level);
1✔
79
}
1✔
80

UNCOV
81
void CompositeOutput::color()
×
82
{
UNCOV
83
  if (output_one_)
×
UNCOV
84
    output_one_->color();
×
UNCOV
85
  if (output_two_)
×
UNCOV
86
    output_two_->color();
×
UNCOV
87
}
×
88

UNCOV
89
void CompositeOutput::print_buffer(const char* buffer)
×
90
{
UNCOV
91
  if (output_one_)
×
UNCOV
92
    output_one_->print_buffer(buffer);
×
UNCOV
93
  if (output_two_)
×
UNCOV
94
    output_two_->print_buffer(buffer);
×
UNCOV
95
}
×
96

UNCOV
97
void CompositeOutput::print(const char* buffer)
×
98
{
UNCOV
99
  if (output_one_)
×
UNCOV
100
    output_one_->print(buffer);
×
UNCOV
101
  if (output_two_)
×
UNCOV
102
    output_two_->print(buffer);
×
UNCOV
103
}
×
104

UNCOV
105
void CompositeOutput::print(long number)
×
106
{
UNCOV
107
  if (output_one_)
×
UNCOV
108
    output_one_->print(number);
×
UNCOV
109
  if (output_two_)
×
UNCOV
110
    output_two_->print(number);
×
UNCOV
111
}
×
112

UNCOV
113
void CompositeOutput::print(size_t number)
×
114
{
UNCOV
115
  if (output_one_)
×
UNCOV
116
    output_one_->print(number);
×
UNCOV
117
  if (output_two_)
×
UNCOV
118
    output_two_->print(number);
×
UNCOV
119
}
×
120

UNCOV
121
void CompositeOutput::print_double(double number)
×
122
{
UNCOV
123
  if (output_one_)
×
UNCOV
124
    output_one_->print_double(number);
×
UNCOV
125
  if (output_two_)
×
UNCOV
126
    output_two_->print_double(number);
×
UNCOV
127
}
×
128

UNCOV
129
void CompositeOutput::print_failure(const Failure& failure)
×
130
{
UNCOV
131
  if (output_one_)
×
UNCOV
132
    output_one_->print_failure(failure);
×
UNCOV
133
  if (output_two_)
×
UNCOV
134
    output_two_->print_failure(failure);
×
UNCOV
135
}
×
136

UNCOV
137
void CompositeOutput::set_progress_indicator(const char* indicator)
×
138
{
UNCOV
139
  if (output_one_)
×
UNCOV
140
    output_one_->set_progress_indicator(indicator);
×
UNCOV
141
  if (output_two_)
×
UNCOV
142
    output_two_->set_progress_indicator(indicator);
×
UNCOV
143
}
×
144

145
void CompositeOutput::print_very_verbose(const char* str)
16✔
146
{
147
  if (output_one_)
16✔
148
    output_one_->print_very_verbose(str);
16✔
149
  if (output_two_)
16✔
150
    output_two_->print_very_verbose(str);
16✔
151
}
16✔
152

UNCOV
153
void CompositeOutput::flush()
×
154
{
UNCOV
155
  if (output_one_)
×
UNCOV
156
    output_one_->flush();
×
UNCOV
157
  if (output_two_)
×
UNCOV
158
    output_two_->flush();
×
UNCOV
159
}
×
160

161
} // namespace test
162
} // namespace tiny
163
} // namespace mu
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc