GCC Code Coverage Report


./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
7 of 7, 0 excluded
100.0%
Functions:
2 of 2, 0 excluded
100.0%
Branches:
0 of 0, 0 excluded
-%

libs/base/src/base/range.cc
Line Branch Exec Source
1 #include "base/range.h"
2
3 namespace eu
4 {
5 float
6 10 from_01f(float lower_bound, float upper_bound, float value)
7 {
8 10 return value * (upper_bound - lower_bound) + lower_bound;
9 }
10
11 template <>
12 float
13 4 from_01(const R<float>& range, float value)
14 {
15 return from_01f
16 4 (
17 4 range.lower_bound,
18 4 range.upper_bound,
19 value
20 4 );
21 }
22 }
23
24