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

nasa / trick / 16529262532

25 Jul 2025 06:44PM UTC coverage: 55.922% (+0.03%) from 55.895%
16529262532

Pull #1930

github

web-flow
Merge e688aa7db into d3daa8e16
Pull Request #1930: Add capability to save input file used during run #1928

5 of 9 new or added lines in 2 files covered. (55.56%)

5 existing lines in 3 files now uncovered.

12338 of 22063 relevant lines covered (55.92%)

262577.33 hits per line

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

75.0
/trick_source/sim_services/InputProcessor/InputProcessor.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 <string.h>
16

17
#include "trick/InputProcessor.hh"
18
#include "trick/command_line_protos.h"
19

20
Trick::InputProcessor * the_ip ;
21

22
Trick::InputProcessor::InputProcessor()
226✔
23
 : verify_input(0)
24
 , save_input(0)
226✔
25
{
26

27
    the_ip = this ;
226✔
28

29
}
226✔
30

31
int Trick::InputProcessor::process_sim_args() {
182✔
32

33
    int i ;
34
    int argc ;
35
    char ** argv ;
36

37
    argc = command_line_args_get_argc() ;
182✔
38
    argv = command_line_args_get_argv() ;
182✔
39
    input_file = command_line_args_get_input_file() ;
182✔
40

41
    /* Process all other calling arguments */
42
    for (i = 1; i < argc; i++) {
367✔
43

44
        /*
45
         * If there are more than 2 calling arguments
46
         */
47

48
        if (!strcmp("-d", argv[i])) {
185✔
49
            /* Set the 'input verification only' and echo input flags */
50
            verify_input = 1 ;
×
51
        }
52

53
        if (!strcmp("--save-input-file", argv[i])) {
185✔
54
            /* Set the 'save processed input file lines' flag */
NEW
55
            save_input = 1 ;
×
56
        }
57
    }
58

59
    return(0) ;
182✔
60

61
}
62

63
int Trick::InputProcessor::shutdown() {
×
64
    return(0) ;
×
65
}
66

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