| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstring> | ||
| 4 | #include <iostream> | ||
| 5 | #include <string> | ||
| 6 | #include <tuple> | ||
| 7 | #include <utility> | ||
| 8 | |||
| 9 | #include "task/include/task.hpp" | ||
| 10 | |||
| 11 | namespace shekhirev_v_char_freq_seq { | ||
| 12 | |||
| 13 |
6/11✓ Branch 2 taken 64 times.
✓ Branch 3 taken 672 times.
✗ Branch 4 not taken.
✓ Branch 8 taken 64 times.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 64 times.
✓ Branch 15 taken 64 times.
✗ Branch 16 not taken.
✓ Branch 19 taken 3152 times.
✗ Branch 20 not taken.
|
5592 | struct InputData { |
| 14 | std::string str; | ||
| 15 | char target; | ||
| 16 | |||
| 17 |
1/2✓ Branch 1 taken 64 times.
✗ Branch 2 not taken.
|
128 | InputData() : target(0) {} |
| 18 | |||
| 19 | ✗ | InputData(std::string s, char t) : str(std::move(s)), target(t) {} | |
| 20 | |||
| 21 | bool operator==(const InputData &other) const { | ||
| 22 | ✗ | return str == other.str && target == other.target; | |
| 23 | } | ||
| 24 | |||
| 25 | 336 | friend std::ostream &operator<<(std::ostream &os, const InputData &data) { | |
| 26 | 336 | os << "{ str: \"" << data.str << "\", target: '" << data.target << "' }"; | |
| 27 | 336 | return os; | |
| 28 | } | ||
| 29 | }; | ||
| 30 | |||
| 31 | using InType = InputData; | ||
| 32 | using OutType = int; | ||
| 33 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 34 | using TestType = std::tuple<InputData, OutType, std::string>; | ||
| 35 | |||
| 36 | } // namespace shekhirev_v_char_freq_seq | ||
| 37 |