Showing 1 of 1 files from the diff.
Newly tracked file
source/automem/unique.d changed.

@@ -39,6 +39,8 @@
Loading
39 39
40 40
    static if(is(Type == class))
41 41
        alias Pointer = Type;
42 +
    else static if(is(Type == interface))
43 +
        static assert(0, "Interfaces is not supported by Unique. Use (abstract) base class");
42 44
    else
43 45
        alias Pointer = Type*;
44 46
@@ -174,6 +176,8 @@
Loading
174 176
                auto repr = (cast(void*)_object)[0..__traits(classInstanceSize, Type)];
175 177
                GC.removeRange(&repr[(void*).sizeof]);
176 178
            }();
179 +
        } else static if (is(Type == interface)) {
180 +
            static assert(0, "Interfaces is not supported by Unique. Use (abstract) base class");
177 181
        } else static if (supportGC && hasIndirections!Type) {
178 182
            () @trusted {
179 183
                GC.removeRange(_object);
@@ -249,6 +253,8 @@
Loading
249 253
                    GC.addRange(&repr[(void*).sizeof], (void*).sizeof);
250 254
                }
251 255
            }();
256 +
        } else static if (is(Type == interface)) {
257 +
            static assert(0, "Interfaces is not supported by Unique. Use (abstract) base class");
252 258
        } else static if (supportGC && hasIndirections!Type) {
253 259
            () @trusted {
254 260
                GC.addRange(u._object, Type.sizeof);
Files Coverage
source/automem 98.11%
tests/ut 99.44%
Project Totals (11 files) 99.00%
283.3
TRAVIS_OS_NAME=linux
283.2
TRAVIS_OS_NAME=linux
283.1
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

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