• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

llnl / dftracer-utils / 29787659139

20 Jul 2026 11:34PM UTC coverage: 51.578% (-1.1%) from 52.66%
29787659139

Pull #99

github

web-flow
Merge ee805adeb into 06bc84ec9
Pull Request #99: Support CM time_metric (NS/MS/SEC/US) across reader and viz

34832 of 86278 branches covered (40.37%)

Branch coverage included in aggregate %.

1034 of 1319 new or added lines in 30 files covered. (78.39%)

5193 existing lines in 197 files now uncovered.

35349 of 49791 relevant lines covered (70.99%)

9765.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/dftracer/utils/python/py_type_helpers.h
1
#ifndef DFTRACER_UTILS_PYTHON_PY_TYPE_HELPERS_H
2
#define DFTRACER_UTILS_PYTHON_PY_TYPE_HELPERS_H
3

4
#include <Python.h>
5

6
// Ready a type and add it to the module under `name`. Returns 0 on success,
7
// -1 on failure with the Python error set.
8
//
9
// Note: this deliberately does NOT decref the module on failure. PyInit_*
10
// returns NULL without owning a balancing reference to the module, so an extra
11
// Py_DECREF(m) here would be an over-release bug.
12
inline int register_type(PyObject *m, PyTypeObject *type, const char *name) {
21✔
13
    if (PyType_Ready(type) < 0) return -1;
21!
14
    Py_INCREF(type);
21✔
15
    if (PyModule_AddObject(m, name, reinterpret_cast<PyObject *>(type)) < 0) {
21!
UNCOV
16
        Py_DECREF(type);
×
17
        return -1;
×
18
    }
19
    return 0;
21✔
20
}
21✔
21

22
#endif  // DFTRACER_UTILS_PYTHON_PY_TYPE_HELPERS_H
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc