LCOV - code coverage report
Current view: top level - src/test - test_acutest.c (source / functions) Hit Total Coverage
Test: LAGraph code coverage report. Commit id: cc56ed4. Current time (UTC): 2024-08-30T17:14:30Z Lines: 4 4 100.0 %
Date: 2024-08-30 17:16:41 Functions: 1 1 100.0 %

          Line data    Source code
       1             : //-----------------------------------------------------------------------------
       2             : // LAGraph/src/test/test_acutest.c: simple demo of how to use acutest
       3             : //-----------------------------------------------------------------------------
       4             : 
       5             : // LAGraph, (c) 2019-2022 by The LAGraph Contributors, All Rights Reserved.
       6             : // SPDX-License-Identifier: BSD-2-Clause
       7             : //
       8             : // For additional details (including references to third party source code and
       9             : // other files) see the LICENSE file or contact permission@sei.cmu.edu. See
      10             : // Contributors.txt for a full list of contributors. Created, in part, with
      11             : // funding and support from the U.S. Government (see Acknowledgments.txt file).
      12             : // DM22-0790
      13             : 
      14             : // Contributed by Scott McMillan, SEI Carnegie Mellon University
      15             : 
      16             : //-----------------------------------------------------------------------------
      17             : 
      18             : #include "LAGraph_test.h"
      19             : 
      20             : //****************************************************************************
      21           1 : void test_dummy(void)
      22             : {
      23           1 :     TEST_CHECK(42 == 42);
      24             :     // this test message will not appear in the log, because the test passes:
      25           1 :     TEST_MSG ("Testing equality %d", 42) ;
      26           1 : }
      27             : 
      28             : //****************************************************************************
      29             : #if 0
      30             : void test_dummy_fails(void)
      31             : {
      32             :     TEST_CHECK(42 == 0);
      33             :     // this test message will appear in the log, because the test fails:
      34             :     TEST_MSG ("this test is supposed to fail, because %d != %d\n", 42, 0) ;
      35             : }
      36             : #endif
      37             : 
      38             : //****************************************************************************
      39             : //****************************************************************************
      40             : 
      41             : // uncomment the line below to create an intentional test failure.
      42             : 
      43             : TEST_LIST = {
      44             :     {"dummy", test_dummy},
      45             : //  {"dummy_fails", test_dummy_fails},
      46             :     // no brutal test needed
      47             :     {NULL, NULL}
      48             : };

Generated by: LCOV version 1.14