GCC Code Coverage Report


Directory: ./
File: tasks/kondakov_v_global_search/common/include/common.hpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4 #include <string>
5 #include <tuple>
6
7 namespace kondakov_v_global_search {
8
9 enum class FunctionType : std::uint8_t { kQuadratic, kSine, kAbs };
10
11 40 struct Params {
12 FunctionType func_type = FunctionType::kQuadratic;
13 double func_param = 0.0;
14 double left = 0.0;
15 double right = 0.0;
16 double accuracy = 1e-6;
17 double reliability = 1.0;
18 int max_iterations = 1000;
19 };
20
21 struct Solution {
22 double argmin = 0.0;
23 double value = 0.0;
24 int iterations = 0;
25 bool converged = false;
26 };
27
28 using InType = Params;
29 using OutType = Solution;
30 using TestType = std::tuple<Params, std::string>;
31
32 } // namespace kondakov_v_global_search
33