LCOV - code coverage report
Current view: top level - source4/torture/local - smbtorture_fullname.c (source / functions) Hit Total Coverage
Test: coverage report for master 2b515b7d Lines: 13 13 100.0 %
Date: 2024-02-28 12:06:22 Functions: 2 2 100.0 %

          Line data    Source code
       1             : #include "includes.h"
       2             : #include "torture/smbtorture.h"
       3             : #include "torture/local/proto.h"
       4             : 
       5           9 : static bool test_smbtorture_always_pass(struct torture_context *tctx)
       6             : {
       7           9 :         return true;
       8             : }
       9             : 
      10        2379 : struct torture_suite *torture_local_smbtorture(TALLOC_CTX *ctx)
      11             : {
      12        2379 :         struct torture_suite *suite = torture_suite_create(ctx, "smbtorture");
      13        2379 :         struct torture_suite *suite_level1 = torture_suite_create(ctx,
      14             :                                                                    "level1");
      15        2379 :         struct torture_suite *suite_level2 = torture_suite_create(ctx,
      16             :                                                                    "level2");
      17        2379 :         struct torture_suite *suite_level3 = torture_suite_create(ctx,
      18             :                                                                   "level3");
      19             : 
      20        2379 :         torture_suite_add_suite(suite_level2, suite_level3);
      21        2379 :         torture_suite_add_suite(suite_level1, suite_level2);
      22        2379 :         torture_suite_add_suite(suite, suite_level1);
      23             : 
      24        2379 :         torture_suite_add_simple_test(suite_level3, "always_pass",
      25             :                                      test_smbtorture_always_pass);
      26             : 
      27        2379 :         suite->description = talloc_strdup(suite,
      28             :                                 "smbtorture multilevel always pass test.");
      29             : 
      30        2379 :         return suite;
      31             : }

Generated by: LCOV version 1.14