GCC Code Coverage Report


Directory: ./
File: src/dependencies/fmt.h
Date: 2023-04-27 00:55:30
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 5 10 50.0%
Branches: 3 6 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <spdlog/fmt/bundled/ostream.h>
4
5 #include "dtypes.h"
6
7 namespace lython {
8 using FmtStr = fmt::string_view;
9
10 template <typename... Args>
11 String fmtstr(FmtStr fmtstr, Args&&... args) {
12
1/2
✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
660 StringStream ss;
13
1/2
✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
660 fmt::print(ss, fmtstr, args...);
14
1/2
✓ Branch 1 taken 334 times.
✗ Branch 2 not taken.
1320 return ss.str();
15 660 }
16 } // namespace lython
17