1
0
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:
Tristan B. Velloza Kildaire 2023-01-07 18:12:03 +02:00
parent 8cffa843f4
commit a0d74701d5
2 changed files with 9 additions and 8 deletions

View File

@ -1,8 +0,0 @@
module app;
import gogga;
void main()
{
gprint("Hello poes");
}

View File

@ -60,3 +60,12 @@ void gprintln(messageT)(messageT message, DebugType debugType = DebugType.INFO)
/* Call `gprint` */ /* Call `gprint` */
gprint(printStr, debugType); gprint(printStr, debugType);
} }
unittest
{
alias debugTypes = __traits(allMembers, DebugType);
static foreach(debugType; debugTypes)
{
gprintln("Hello world", mixin("DebugType."~debugType));
}
}