2019-09-08 21:48:23 +02:00
|
|
|
const mock_framework = @import("mock_framework.zig");
|
2019-09-29 13:55:34 +02:00
|
|
|
pub const initTest = mock_framework.initTest;
|
|
|
|
pub const freeTest = mock_framework.freeTest;
|
|
|
|
pub const addTestParams = mock_framework.addTestParams;
|
|
|
|
pub const addConsumeFunction = mock_framework.addConsumeFunction;
|
|
|
|
pub const addRepeatFunction = mock_framework.addRepeatFunction;
|
2019-09-08 21:48:23 +02:00
|
|
|
|
|
|
|
pub const Level = enum {
|
|
|
|
INFO,
|
|
|
|
DEBUG,
|
|
|
|
WARNING,
|
2019-09-29 13:55:34 +02:00
|
|
|
ERROR,
|
2019-09-08 21:48:23 +02:00
|
|
|
};
|
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn log(comptime level: Level, comptime format: []const u8, args: var) void {
|
2019-09-08 21:48:23 +02:00
|
|
|
//return mock_framework.performAction("log", void, level, format, args);
|
|
|
|
}
|
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn logInfo(comptime format: []const u8, args: var) void {
|
2019-09-08 21:48:23 +02:00
|
|
|
//return mock_framework.performAction("logInfo", void, format, args);
|
|
|
|
}
|
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn logDebug(comptime format: []const u8, args: var) void {
|
2019-09-08 21:48:23 +02:00
|
|
|
//return mock_framework.performAction("logDebug", void, format, args);
|
|
|
|
}
|
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn logWarning(comptime format: []const u8, args: var) void {
|
2019-09-08 21:48:23 +02:00
|
|
|
//return mock_framework.performAction("logWarning", void, format, args);
|
|
|
|
}
|
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn logError(comptime format: []const u8, args: var) void {
|
2019-09-08 21:48:23 +02:00
|
|
|
//return mock_framework.performAction("logError", void, format, args);
|
|
|
|
}
|