mirror of
https://github.com/deavmi/gogga
synced 2024-09-21 09:43:45 +02:00
Added unittests and gained 100% coverage
This commit is contained in:
parent
8cffa843f4
commit
a0d74701d5
@ -1,8 +0,0 @@
|
||||
module app;
|
||||
|
||||
import gogga;
|
||||
|
||||
void main()
|
||||
{
|
||||
gprint("Hello poes");
|
||||
}
|
@ -60,3 +60,12 @@ void gprintln(messageT)(messageT message, DebugType debugType = DebugType.INFO)
|
||||
/* Call `gprint` */
|
||||
gprint(printStr, debugType);
|
||||
}
|
||||
|
||||
unittest
|
||||
{
|
||||
alias debugTypes = __traits(allMembers, DebugType);
|
||||
static foreach(debugType; debugTypes)
|
||||
{
|
||||
gprintln("Hello world", mixin("DebugType."~debugType));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user