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

nasa / trick / 41067945034

30 Oct 2026 01:59PM UTC coverage: 57.411% (+0.03%) from 57.386%
41067945034

push

github

web-flow
feat: Add input processor and thread sync to frame logging data (#2249)

Co-authored-by: Hong Chen <hchen99@users.noreply.github.com>

18 of 19 new or added lines in 3 files covered. (94.74%)

9 existing lines in 5 files now uncovered.

15095 of 26293 relevant lines covered (57.41%)

477503.99 hits per line

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

55.17
/trick_source/sim_services/Message/MessageCustomManager.cpp
1
#include "trick/MessageCustomManager.hh"
2
#include "trick/Message_proto.hh"
3
#include "trick/memorymanager_c_intf.h"
4

5
Trick::MessageCustomManager * the_message_custom_manager ;
6

7
int open_custom_message_file(std::string file_name, std::string subscriber_name, int level) {
1 ✔
8
    if (the_message_custom_manager == NULL) {
1 ✔
UNCOV
9
        std::cout << "Problem: custom_message_manager not yet instantiated" << std::endl;
×
UNCOV
10
        return -1;
×
11
    }
12

13
    return the_message_custom_manager->open_custom_message_file(file_name, subscriber_name, level);
1 ✔
14
}
15

16
/**
17
 @brief The constructor.
18
    */
19
Trick::MessageCustomManager::MessageCustomManager() {
234 ✔
20
    the_message_custom_manager = this;
234 ✔
21
}
234 ✔
22

23
Trick::MessageCustomManager::~MessageCustomManager() {
234 ✔
24
    the_message_custom_manager = NULL;
234 ✔
25
    
26
    for (Trick::MessageCustomFile *  message_file : _custom_message_files) {
468 ✔
27
        TMM_delete_var_a(message_file);
×
28
    }
29
}
234 ✔
30

31
int Trick::MessageCustomManager::open_custom_message_file(std::string file_name, std::string subscriber_name, int level) {
×
32
    Trick::MessageCustomFile * new_message_file = (Trick::MessageCustomFile *) TMM_declare_var_s("Trick::MessageCustomFile");
×
33

34
    new_message_file->set_level(level);
×
35
    new_message_file->set_file_name(file_name);
×
36
    new_message_file->set_name(subscriber_name);
×
37
    new_message_file->init();
×
38

39
    _custom_message_files.push_back(new_message_file);
×
40

41
    return new_message_file->get_level();
×
42
}
43

44
/**
45
 @brief Output message to the file.
46
    */
47
void Trick::MessageCustomManager::update( unsigned int level , std::string header , std::string message ) {
37,025 ✔
48
    for (auto message_file : _custom_message_files) {
74,050 ✔
49
        message_file->update(level, header, message);
×
50
    }
51
}
37,025 ✔
52

53
int Trick::MessageCustomManager::restart( ) {
11 ✔
54
    for (auto message_file : _custom_message_files) {
22 ✔
55
        message_file->restart();
×
56
    }
57

58
    return 0;
11 ✔
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc