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

nasa / trick / 12938103830

23 Jan 2025 09:08PM UTC coverage: 55.937% (+0.05%) from 55.885%
12938103830

Pull #1785

github

web-flow
Merge 8533029a6 into b755b2e7b
Pull Request #1785: Frame Performance Tool- jperf

18 of 21 new or added lines in 1 file covered. (85.71%)

119 existing lines in 10 files now uncovered.

12323 of 22030 relevant lines covered (55.94%)

86209.4 hits per line

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

27.27
/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 ) {
27✔
58
    if ( the_drd != NULL ) {
27✔
59
        return the_drd->add_group(in_group, buffering) ;
27✔
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

71
extern "C" void remove_all_data_record_groups(void) {
×
72
    the_drd->remove_all_groups() ;
×
73
}
×
74

75
extern "C" Trick::DataRecordGroup * get_data_record_group( std::string in_name ) {
6✔
76
    if ( the_drd != NULL ) {
6✔
77
        return the_drd->get_group(in_name) ;
6✔
78
    }
79
    return NULL ;
×
80
}
81

82
extern "C" Trick::DataRecordGroup * get_data_record_group_by_idx( int in_idx ) {
6✔
83
    if ( the_drd != NULL ) {
6✔
84
        return the_drd->get_group(in_idx) ;
6✔
85
    }
86
    return NULL ;
×
87
}
88

89
extern "C" int get_num_data_record_groups() {
2✔
90
   if ( the_drd != NULL ) {
2✔
91
        return the_drd->get_groups_size() ;
2✔
92
    }
93
    return 0 ;
×
94
}
95

UNCOV
96
extern "C" int set_max_size_record_group (const char * in_name, uint64_t bytes ) {
×
UNCOV
97
    if ( the_drd != NULL ) {
×
UNCOV
98
    return the_drd->set_group_max_file_size(in_name, bytes ) ;
×
99
    }
UNCOV
100
    return -1 ;
×
101
}
102

UNCOV
103
extern "C" int dr_set_max_file_size ( uint64_t bytes ) {
×
UNCOV
104
    if ( the_drd != NULL ) {
×
UNCOV
105
    return the_drd->set_max_file_size( bytes ) ;
×
106
    }
UNCOV
107
    return -1 ;
×
108
}
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