mosra / magnum-bindings
Showing 1 of 1 files from the diff.

@@ -686,7 +686,7 @@
Loading
686 686
               so we create a scaling(*args, **kwargs) and dispatch ourselves. */
687 687
            .def_static("_sscaling", static_cast<Math::Matrix3<T>(*)(const Math::Vector2<T>&)>(&Math::Matrix3<T>::scaling))
688 688
            .def("_iscaling", static_cast<Math::Vector2<T>(Math::Matrix3<T>::*)() const>(&Math::Matrix3<T>::scaling))
689 -
            .def("scaling", [matrix3](py::args args, py::kwargs kwargs) {
689 +
            .def("scaling", [matrix3](const py::args& args, const py::kwargs& kwargs) {
690 690
                if(py::len(args) && py::isinstance<Math::Matrix3<T>>(args[0])) {
691 691
                    return matrix3.attr("_iscaling")(*args, **kwargs);
692 692
                } else {
@@ -700,7 +700,7 @@
Loading
700 700
                return Math::Matrix3<T>::rotation(Math::Rad<T>(angle));
701 701
            })
702 702
            .def("_irotation", static_cast<Math::Matrix2x2<T>(Math::Matrix3<T>::*)() const>(&Math::Matrix3<T>::rotation))
703 -
            .def("rotation", [matrix3](py::args args, py::kwargs kwargs) {
703 +
            .def("rotation", [matrix3](const py::args& args, const py::kwargs& kwargs) {
704 704
                if(py::len(args) && py::isinstance<Math::Matrix3<T>>(args[0])) {
705 705
                    return matrix3.attr("_irotation")(*args, **kwargs);
706 706
                } else {
@@ -896,7 +896,7 @@
Loading
896 896
               so we create a scaling(*args, **kwargs) and dispatch ourselves. */
897 897
            .def_static("_sscaling", static_cast<Math::Matrix4<T>(*)(const Math::Vector3<T>&)>(&Math::Matrix4<T>::scaling))
898 898
            .def("_iscaling", static_cast<Math::Vector3<T>(Math::Matrix4<T>::*)() const>(&Math::Matrix4<T>::scaling))
899 -
            .def("scaling", [matrix4](py::args args, py::kwargs kwargs) {
899 +
            .def("scaling", [matrix4](const py::args& args, const py::kwargs& kwargs) {
900 900
                if(py::len(args) && py::isinstance<Math::Matrix4<T>>(args[0])) {
901 901
                    return matrix4.attr("_iscaling")(*args, **kwargs);
902 902
                } else {
@@ -910,7 +910,7 @@
Loading
910 910
                return Math::Matrix4<T>::rotation(Math::Rad<T>(angle), axis);
911 911
            })
912 912
            .def("_irotation", static_cast<Math::Matrix3x3<T>(Math::Matrix4<T>::*)() const>(&Math::Matrix4<T>::rotation))
913 -
            .def("rotation", [matrix4](py::args args, py::kwargs kwargs) {
913 +
            .def("rotation", [matrix4](const py::args& args, const py::kwargs& kwargs) {
914 914
                if(py::len(args) && py::isinstance<Math::Matrix4<T>>(args[0])) {
915 915
                    return matrix4.attr("_irotation")(*args, **kwargs);
916 916
                } else {
Files Coverage
src 88.00%
Project Totals (43 files) 88.00%
1
fixes:
2
# The src/python/magnum/__init__.py is copied to cmake's build dir together
3
# with setup.py next to the C++ binaries and the test is done from here.
4
# Python's coverage.py reports an absolute path to it, which means a simple
5
# "build/src/python/::src/python/" won't suffice. This is hardcoded to Travis,
6
# CircleCI Linux / macOS and AppVeyor build paths so let's hope these won't
7
# change.
8
- "/home/travis/build/mosra/magnum-bindings/build/src/python/::src/python/"
9
- "/Users/travis/build/mosra/magnum-bindings/build/src/python/::src/python/"
10
- "/root/project/build/src/python/::src/python/"
11
- "/Users/distiller/project/build/src/python/::src/python/"
12
- "C:/projects/magnum-bindings/build/src/python/::src/python/"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading