ChaiScript / ChaiScript

Compare 12f034b ... +0 ... 259f130

Coverage Reach
include/chaiscript/language/chaiscript_parser.hpp include/chaiscript/language/chaiscript_eval.hpp include/chaiscript/language/chaiscript_common.hpp include/chaiscript/language/chaiscript_engine.hpp include/chaiscript/language/chaiscript_optimizer.hpp include/chaiscript/language/chaiscript_algebraic.hpp include/chaiscript/language/chaiscript_posix.hpp include/chaiscript/language/chaiscript_tracer.hpp include/chaiscript/language/chaiscript_prelude.hpp include/chaiscript/dispatchkit/dispatchkit.hpp include/chaiscript/dispatchkit/boxed_number.hpp include/chaiscript/dispatchkit/proxy_functions.hpp include/chaiscript/dispatchkit/bootstrap.hpp include/chaiscript/dispatchkit/bootstrap_stl.hpp include/chaiscript/dispatchkit/type_conversions.hpp include/chaiscript/dispatchkit/boxed_value.hpp include/chaiscript/dispatchkit/dynamic_object_detail.hpp include/chaiscript/dispatchkit/boxed_cast_helper.hpp include/chaiscript/dispatchkit/type_info.hpp include/chaiscript/dispatchkit/handle_return.hpp include/chaiscript/dispatchkit/any.hpp include/chaiscript/dispatchkit/dynamic_object.hpp include/chaiscript/dispatchkit/function_params.hpp include/chaiscript/dispatchkit/operators.hpp include/chaiscript/dispatchkit/function_call_detail.hpp include/chaiscript/dispatchkit/function_call.hpp include/chaiscript/dispatchkit/register_function.hpp include/chaiscript/dispatchkit/proxy_functions_detail.hpp include/chaiscript/dispatchkit/exception_specification.hpp include/chaiscript/dispatchkit/bad_boxed_cast.hpp include/chaiscript/dispatchkit/boxed_cast.hpp include/chaiscript/dispatchkit/proxy_constructors.hpp include/chaiscript/dispatchkit/function_signature.hpp include/chaiscript/utility/json.hpp include/chaiscript/utility/json_wrap.hpp include/chaiscript/utility/quick_flat_map.hpp include/chaiscript/utility/static_string.hpp include/chaiscript/utility/utility.hpp include/chaiscript/utility/hash.hpp include/chaiscript/chaiscript_defines.hpp include/chaiscript/chaiscript_threading.hpp include/chaiscript/chaiscript_stdlib.hpp include/chaiscript/chaiscript.hpp unittests/catch.hpp unittests/compiled_tests.cpp unittests/integer_literal_test.cpp unittests/boxed_cast_test.cpp unittests/multithreaded_test.cpp unittests/type_info_test.cpp unittests/multifile_test_module.cpp unittests/c_linkage_test.cpp unittests/multifile_test_main.cpp unittests/multifile_test_chai.cpp unittests/static_chaiscript.cpp src/main.cpp src/test_module.cpp src/stl_extra.cpp src/chaiscript_stdlib_module.cpp static_libs/chaiscript_parser.cpp static_libs/chaiscript_stdlib.cpp

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -76,7 +76,7 @@
Loading
76 76
77 77
  // Constructor specialization for array of size 0
78 78
  template<>
79 -
  constexpr Function_Params::Function_Params(const std::array<Boxed_Value, size_t{0}> &a)
79 +
  constexpr Function_Params::Function_Params(const std::array<Boxed_Value, size_t{0}> & /* a */)
80 80
    : m_begin(nullptr), m_end(nullptr)
81 81
  {
82 82
  }

@@ -185,7 +185,9 @@
Loading
185 185
            return const_var(c_lhs * c_rhs);
186 186
          case Operators::Opers::difference:
187 187
            return const_var(c_lhs - c_rhs);
188 -
        }
188 +
          default:
189 +
            break;
190 +
          }
189 191
190 192
191 193
        if constexpr (!std::is_floating_point<LHS>::value && !std::is_floating_point<RHS>::value) {
@@ -203,7 +205,9 @@
Loading
203 205
              return const_var(c_lhs | c_rhs);
204 206
            case Operators::Opers::bitwise_xor:
205 207
              return const_var(c_lhs ^ c_rhs);
206 -
          }
208 +
            default:
209 +
              break;
210 +
            }
207 211
        }
208 212
209 213
        if (t_lhs) {
@@ -224,7 +228,9 @@
Loading
224 228
            case Operators::Opers::assign_difference:
225 229
              *t_lhs -= c_rhs;
226 230
              return t_bv;
227 -
          }
231 +
            default:
232 +
              break;
233 +
            }
228 234
229 235
          if constexpr (!std::is_floating_point<LHS>::value && !std::is_floating_point<RHS>::value) {
230 236
            switch (t_oper) {
@@ -247,7 +253,9 @@
Loading
247 253
              case Operators::Opers::assign_bitwise_xor:
248 254
                *t_lhs ^= c_rhs;
249 255
                return t_bv;
250 -
            }
256 +
              default:
257 +
                break;
258 +
              }
251 259
          }
252 260
        }
253 261
@@ -299,21 +307,27 @@
Loading
299 307
                case Operators::Opers::pre_decrement:
300 308
                  --(*lhs);
301 309
                  return t_lhs;
302 -
              }
310 +
                default:
311 +
                  break;
312 +
                }
303 313
            }
304 314
305 315
            switch (t_oper) {
306 316
              case Operators::Opers::unary_minus:
307 317
                return const_var(-c_lhs);
308 318
              case Operators::Opers::unary_plus:
309 319
                return const_var(+c_lhs);
310 -
            }
320 +
              default:
321 +
                break;
322 +
              }
311 323
312 324
            if constexpr (!std::is_floating_point_v<std::decay_t<decltype(c_lhs)>>) {
313 325
              switch (t_oper) {
314 326
                case Operators::Opers::bitwise_complement:
315 327
                  return const_var(~c_lhs);
316 -
              }
328 +
                default:
329 +
                  break;
330 +
                }
317 331
            }
318 332
319 333
            throw chaiscript::detail::exception::bad_any_cast();

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
include/chaiscript -0.02% 90.93%
src 72.79%
static_libs 100.00%
unittests 45.97%
Project Totals (60 files) 69.78%
Loading