Coverage Report

Created: 2026-10-31 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/zeek/build/src/storage/storage.bif.cc
Line
Count
Source
1
// This file was automatically generated by bifcl from /src/zeek/src/storage/storage.bif (alternative mode).
2
3
4
#include "storage.bif.h"
5
#include "zeek/Func.h"
6
7
8
#line 5 "/src/zeek/src/storage/storage.bif"
9
10
11
#include "zeek/storage/Backend.h"
12
13
using namespace zeek;
14
using namespace zeek::storage;
15
16
bool zeek::BifFunc::Storage::is_open_native(zeek::Val* backend)
17
#line 22 "/src/zeek/src/storage/storage.bif"
18
19
  
20
#line 23 "/src/zeek/src/storage/storage.bif"
21
0
{
22
0
#line 23 "/src/zeek/src/storage/storage.bif"
23
24
0
  auto b = storage::detail::BackendHandleVal::CastFromAny(backend);
25
0
  return b.has_value();
26
0
  } // end of BifFunc::Storage::is_open
27
28
#line 26 "/src/zeek/src/storage/storage.bif"
29
30
#line 22 "/src/zeek/src/storage/storage.bif"
31
zeek::ValPtr zeek::BifFunc::Storage::is_open_bif(zeek::detail::Frame* frame, const zeek::Args* BiF_ARGS)
32
#line 22 "/src/zeek/src/storage/storage.bif"
33
0
  {
34
0
#line 22 "/src/zeek/src/storage/storage.bif"
35
0
  if ( BiF_ARGS->size() != 1 ) // NOLINT(readability-container-size-empty)
36
0
#line 22 "/src/zeek/src/storage/storage.bif"
37
0
    {
38
0
#line 22 "/src/zeek/src/storage/storage.bif"
39
0
    zeek::emit_builtin_error(zeek::util::fmt("Storage::is_open() takes exactly 1 argument(s), got %lu", BiF_ARGS->size()));
40
0
#line 22 "/src/zeek/src/storage/storage.bif"
41
0
    return nullptr;
42
0
#line 22 "/src/zeek/src/storage/storage.bif"
43
0
    }
44
0
#line 22 "/src/zeek/src/storage/storage.bif"
45
0
  zeek::Val* backend = (zeek::Val*) ((*BiF_ARGS)[0].get()); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast,modernize-avoid-c-style-cast)
46
0
#line 26 "/src/zeek/src/storage/storage.bif"
47
0
  return zeek::val_mgr->Bool(zeek::BifFunc::Storage::is_open_native(backend));
48
0
#line 26 "/src/zeek/src/storage/storage.bif"
49
0
  } // end of shim for BifFunc::Storage::is_open
50
bool zeek::BifFunc::Storage::is_forced_sync_native(zeek::Val* backend)
51
#line 34 "/src/zeek/src/storage/storage.bif"
52
53
  
54
#line 35 "/src/zeek/src/storage/storage.bif"
55
0
{
56
0
#line 35 "/src/zeek/src/storage/storage.bif"
57
58
0
  auto b = storage::detail::BackendHandleVal::CastFromAny(backend);
59
0
  if ( ! b.has_value() )
60
0
    return false;
61
62
0
  return b.value()->backend->IsForcedSync();
63
0
  } // end of BifFunc::Storage::is_forced_sync
64
65
#line 41 "/src/zeek/src/storage/storage.bif"
66
67
#line 34 "/src/zeek/src/storage/storage.bif"
68
zeek::ValPtr zeek::BifFunc::Storage::is_forced_sync_bif(zeek::detail::Frame* frame, const zeek::Args* BiF_ARGS)
69
#line 34 "/src/zeek/src/storage/storage.bif"
70
0
  {
71
0
#line 34 "/src/zeek/src/storage/storage.bif"
72
0
  if ( BiF_ARGS->size() != 1 ) // NOLINT(readability-container-size-empty)
73
0
#line 34 "/src/zeek/src/storage/storage.bif"
74
0
    {
75
0
#line 34 "/src/zeek/src/storage/storage.bif"
76
0
    zeek::emit_builtin_error(zeek::util::fmt("Storage::is_forced_sync() takes exactly 1 argument(s), got %lu", BiF_ARGS->size()));
77
0
#line 34 "/src/zeek/src/storage/storage.bif"
78
0
    return nullptr;
79
0
#line 34 "/src/zeek/src/storage/storage.bif"
80
0
    }
81
0
#line 34 "/src/zeek/src/storage/storage.bif"
82
0
  zeek::Val* backend = (zeek::Val*) ((*BiF_ARGS)[0].get()); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast,modernize-avoid-c-style-cast)
83
0
#line 41 "/src/zeek/src/storage/storage.bif"
84
0
  return zeek::val_mgr->Bool(zeek::BifFunc::Storage::is_forced_sync_native(backend));
85
0
#line 41 "/src/zeek/src/storage/storage.bif"
86
0
  } // end of shim for BifFunc::Storage::is_forced_sync