• 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

57.14
/trick_source/sim_services/CommandLineArguments/command_line_c_intf.cpp
1
/*
2
   PURPOSE: ( Handle the simulation command line args )
3

4
   REFERENCE: ( Trick Simulation Environment )
5

6
   ASSUMPTIONS AND LIMITATIONS: ( None )
7

8
   CLASS: ( N/A )
9

10
   LIBRARY DEPENDENCY: ( None )
11

12
   PROGRAMMERS: ( Keith Vetter LinCom 6/2003 ) */
13

14
#include <iostream>
15
#include "trick/CommandLineArguments.hh"
16

17
extern Trick::CommandLineArguments * the_cmd_args ;
18

19
/**
20
 @relates Trick::CommandLineArguments
21
 @copydoc Trick::CommandLineArguments::process_sim_args(int argc , char **argv)
22
 */
23
extern "C" int command_line_args_process_sim_args(int argc , char **argv) {
177✔
24
    return(the_cmd_args->process_sim_args(argc, argv)) ;
177✔
25
}
26

27
/**
28
 @relates Trick::CommandLineArguments
29
 @copydoc Trick::CommandLineArguments::get_argc()
30
 */
31
extern "C" int command_line_args_get_argc(void) {
715✔
32
    return(the_cmd_args->get_argc()) ;
715✔
33
}
34

35
/**
36
 @relates Trick::CommandLineArguments
37
 @copydoc Trick::CommandLineArguments::get_argv()
38
 */
39
extern "C" char ** command_line_args_get_argv(void) {
715✔
40
    return(the_cmd_args->get_argv()) ;
715✔
41
}
42

43
const char * empty_string = "" ;
44
/**
45
 @relates Trick::CommandLineArguments
46
 @copydoc Trick::CommandLineArguments::get_output_dir()
47
 */
48
extern "C" const char * command_line_args_get_output_dir(void) {
1,274✔
49
    return(the_cmd_args->get_output_dir_ref().c_str()) ;
1,274✔
50
}
51

52
/**
53
 @relates Trick::CommandLineArguments
54
 @copydoc Trick::CommandLineArguments::get_user_output_dir()
55
 */
56

UNCOV
57
extern "C" const char * command_line_args_get_user_output_dir(void) {
×
UNCOV
58
    return(the_cmd_args->get_user_output_dir_ref().c_str()) ;
×
59
}
60

61
/**
62
 @relates Trick::CommandLineArguments
63
 @copydoc Trick::CommandLineArguments::get_input_file()
64
 */
65
extern "C" const char * command_line_args_get_input_file(void) {
250,588✔
66
    return(the_cmd_args->get_input_file_ref().c_str()) ;
250,588✔
67
}
68

69
/**
70
 @relates Trick::CommandLineArguments
71
 @copydoc Trick::CommandLineArguments::get_default_dir()
72
 */
73
extern "C" const char * command_line_args_get_default_dir(void) {
250,416✔
74
    return(the_cmd_args->get_default_dir_ref().c_str()) ;
250,416✔
75
}
76

77
/**
78
 @relates Trick::CommandLineArguments
79
 @copydoc Trick::CommandLineArguments::get_cmdline_name()
80
 */
81
extern "C" const char * command_line_args_get_cmdline_name(void) {
250,411✔
82
    return(the_cmd_args->get_cmdline_name_ref().c_str()) ;
250,411✔
83
}
84

85
/**
86
 @relates Trick::CommandLineArguments
87
 @copydoc Trick::CommandLineArguments::output_dir_timestamped_on()
88
 */
89
extern "C" int output_dir_timestamped_on(void) {
×
90
    return(the_cmd_args->output_dir_timestamped_on()) ;
×
91
}
92

93
/**
94
 @relates Trick::CommandLineArguments
95
 @copydoc Trick::CommandLineArguments::output_dir_timestamped_off()
96
 */
97
extern "C" int output_dir_timestamped_off(void) {
×
98
    return(the_cmd_args->output_dir_timestamped_off()) ;
×
99
}
100

101
/**
102
 @relates Trick::CommandLineArguments
103
 @copydoc Trick::CommandLineArguments::set_output_dir(std::string)
104
 */
105
extern "C" void set_output_dir(const char* output_directory) {
×
106
    the_cmd_args->set_output_dir(output_directory);
×
107
}
×
108

109
/**
110
 @relates Trick::CommandLineArguments
111
 @copydoc Trick::CommandLineArguments::get_input_file_ref()
112
 */
113
std::string & command_line_args_get_input_file_ref(void) {
177✔
114
    return(the_cmd_args->get_input_file_ref()) ;
177✔
115
}
116

117
void create_path(const char* directory) {
×
118
    Trick::CommandLineArguments::create_path(directory);
×
119
}
×
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