LCOV - code coverage report
Current view: top level - /workspaces/target_firmware/src - div_op.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 5 5
Test Date: 2026-03-27 10:27:34 Functions: 100.0 % 1 1

            Line data    Source code
       1              : #include "div_op.h"
       2              : 
       3            9 : int divide_op(calctask_t *task)
       4              : {
       5              :     /*  Note that this function does not check for NULL pointers,
       6              :         because it is assumed that the caller has already done so.
       7              :     */
       8              :     
       9              :     /* Check for divide by zero */
      10            9 :     if (task->operand2 == 0)
      11              :     {
      12            4 :         return 0;
      13              :     }
      14            5 :     task->result = task->operand1 / task->operand2;
      15            5 :     return 1;
      16              : }
        

Generated by: LCOV version 2.3.1-1