• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nasa / trick / 18506435515

14 Oct 2025 06:32PM UTC coverage: 55.789% (-0.03%) from 55.822%
18506435515

Pull #1942

github

web-flow
Merge 0c5e4f40a into deb040f99
Pull Request #1942: Adding additional updates to PR#1847

42 of 81 new or added lines in 2 files covered. (51.85%)

7 existing lines in 5 files now uncovered.

12398 of 22223 relevant lines covered (55.79%)

261229.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.44
/trick_source/sim_services/DataRecord/data_record_utilities.cpp
1
/*
2
PURPOSE:
3
    (Data recording access functions)
4
PROGRAMMERS:
5
     (((Robert W. Bailey) (LinCom Corp) (3/96) (SES upgrades)
6
     ((Alex Lin) (NASA) (April 2009) (--) (c++ port)))
7
*/
8

9
#include "trick/data_record_proto.h"
10
#include "trick/DataRecordDispatcher.hh"
11
#include "trick/DataRecordGroup.hh"
12

13
extern Trick::DataRecordDispatcher * the_drd  ;
14

15
extern "C" int dr_remove_files(void) {
×
16
    if ( the_drd != NULL ) {
×
17
        return the_drd->remove_files() ;
×
18
    }
19
    return -1 ;
×
20
}
21

22
extern "C" int dr_enable(void) {
×
23
    if ( the_drd != NULL ) {
×
24
        return the_drd->enable() ;
×
25
    }
26
    return -1 ;
×
27
}
28

29
extern "C" int dr_enable_group( const char * in_name ) {
×
30
    if ( the_drd != NULL ) {
×
31
        return the_drd->enable( in_name ) ;
×
32
    }
33
    return -1 ;
×
34
}
35

36
extern "C" int dr_disable(void) {
×
37
    if ( the_drd != NULL ) {
×
38
        return the_drd->disable() ;
×
39
    }
40
    return -1 ;
×
41
}
42

43
extern "C" int dr_disable_group( const char * in_name ) {
×
44
    if ( the_drd != NULL ) {
×
45
        return the_drd->disable( in_name ) ;
×
46
    }
47
    return -1 ;
×
48
}
49

50
extern "C" int dr_record_now_group( const char * in_name ) {
×
51
    if ( the_drd != NULL ) {
×
52
        return the_drd->record_now_group( in_name ) ;
×
53
    }
54
    return -1 ;
×
55
}
56

57
extern "C" int add_data_record_group( Trick::DataRecordGroup * in_group, Trick::DR_Buffering buffering ) {
30✔
58
    if ( the_drd != NULL ) {
30✔
59
        return the_drd->add_group(in_group, buffering) ;
30✔
60
    }
61
    return -1 ;
×
62
}
63

64
extern "C" int remove_data_record_group( Trick::DataRecordGroup * in_group ) {
27✔
65
    if ( the_drd != NULL ) {
27✔
66
        return the_drd->remove_group(in_group) ;
27✔
67
    }
68
    return -1 ;
×
69
}
70

NEW
71
extern "C" void remove_all_data_record_groups(void)
×
72
{
NEW
73
    if(the_drd != NULL)
×
74
    {
NEW
75
        the_drd->remove_all_groups();
×
76
    }
UNCOV
77
}
×
78

79
extern "C" Trick::DataRecordGroup * get_data_record_group( std::string in_name ) {
6✔
80
    if ( the_drd != NULL ) {
6✔
81
        return the_drd->get_group(in_name) ;
6✔
82
    }
83
    return NULL ;
×
84
}
85

86
extern "C" Trick::DataRecordGroup * get_data_record_group_by_idx( int in_idx ) {
6✔
87
    if ( the_drd != NULL ) {
6✔
88
        return the_drd->get_group(in_idx) ;
6✔
89
    }
90
    return NULL ;
×
91
}
92

93
extern "C" int get_num_data_record_groups() {
2✔
94
   if ( the_drd != NULL ) {
2✔
95
        return the_drd->get_groups_size() ;
2✔
96
    }
97
    return 0 ;
×
98
}
99

100
extern "C" int set_max_size_record_group (const char * in_name, uint64_t bytes ) {
×
101
    if ( the_drd != NULL ) {
×
102
    return the_drd->set_group_max_file_size(in_name, bytes ) ;
×
103
    }
104
    return -1 ;
×
105
}
106

NEW
107
extern "C" void dr_set_verif_onoff(int on)
×
108
{
NEW
109
    if(the_drd != NULL)
×
110
    {
NEW
111
        the_drd->set_verif_onoff(on);
×
112
    }
NEW
113
}
×
114

NEW
115
extern "C" void dr_set_warning_level(int level)
×
116
{
NEW
117
    if( the_drd != NULL )
×
118
    {
NEW
119
        the_drd->set_warning_level(level);
×
120
    }
NEW
121
}
×
122
        
123

124
extern "C" int dr_set_max_file_size ( uint64_t bytes ) {
×
125
    if ( the_drd != NULL ) {
×
126
    return the_drd->set_max_file_size( bytes ) ;
×
127
    }
128
    return -1 ;
×
129
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc