| 52 | WebReport* webReport = NULL; |
| 53 | |
| 54 | BZ_GET_PLUGIN_VERSION |
| 55 | |
| 56 | BZF_PLUGIN_CALL int bz_Load(const char* commandLine) { |
| 57 | if (webReport) { |
| 58 | delete(webReport); |
| 59 | } |
| 60 | webReport = new WebReport; |
| 61 | |
| 62 | if (commandLine && strlen(commandLine)) { |
| 63 | webReport->init(commandLine); |
| 64 | } |
| 65 | else { |
| 66 | webReport->init("./"); |
| 67 | } |
| 68 | |
| 69 | bz_debugMessage(4, "webReport plugin loaded"); |
| 70 | |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | BZF_PLUGIN_CALL int bz_Unload(void) { |
| 75 | if (webReport) { |
nothing calls this directly
no test coverage detected