LCOV - code coverage report
Current view: top level - test - mkmodule.c (source / functions) Hit Total Coverage
Test: mkernel.info Lines: 9 9 100.0 %
Date: 2024-07-29 16:22:23 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /**         @file  mkmodule.c
       2             :  *         @brief Sample module for unit testing
       3             :  *          @date  31/01/2024
       4             :  *        @author  François Cerbelle (Fanfan), francois@cerbelle.net
       5             :  *     @copyright  Copyright (c) 2024, François Cerbelle
       6             :  *
       7             :  *   @internal
       8             :  *       Compiler  gcc
       9             :  *  Last modified  2024-07-02 09:51
      10             :  *   Organization  Cerbelle.net
      11             :  *        Company  Home
      12             :  *
      13             :  *   This source code is released for free distribution under the terms of the
      14             :  *   GNU General Public License as published by the Free Software Foundation.
      15             :  */
      16             : 
      17             : #include "module.h"
      18             : #include "mkmod.h"
      19             : 
      20             : #include <stdio.h>
      21             : 
      22             : #include "debug/assert.h"
      23             : #include "debug/memory.h"
      24             : 
      25             : /* List exposed module functions */static void mkmod_function();
      26             : mkmod_api_t module_api = {
      27             :     mkmod_function
      28             : };
      29             : 
      30             : static moduleinfo_t moduleinfo = {
      31             :     "MyModule",
      32             :     "MyModule description",
      33             :     0,
      34             :     1,
      35             :     0,
      36             :     "First and Lastname",
      37             :     "email@address.tld",
      38             :     "http://www.mymodule.com",
      39             :     "GPLv3"
      40             : };
      41             : 
      42           4 : moduleinfo_t* onLoad ()
      43             : {
      44           4 :     DBG_TRACE;
      45           4 :     return &moduleinfo;
      46             : }
      47             : 
      48           4 : uint8_t onUnload()
      49             : {
      50           4 :     DBG_TRACE;
      51           4 :     return 0;
      52             : }
      53             : 
      54           4 : static void mkmod_function()
      55             : {
      56           4 :     DBG_TRACE;
      57           4 : }
      58             : 

Generated by: LCOV version 1.16