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

nasa / trick / 8711508477

16 Apr 2024 07:38PM UTC coverage: 55.9% (-0.05%) from 55.952%
8711508477

Pull #1694

github

web-flow
Merge dfb82b770 into 04822023d
Pull Request #1694: Speed up Trick::ScheduledJobQueue::push

29 of 30 new or added lines in 1 file covered. (96.67%)

13 existing lines in 4 files now uncovered.

12275 of 21959 relevant lines covered (55.9%)

82710.05 hits per line

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

87.5
/trick_source/sim_services/MemoryManager/MemoryManager_is_alloced.cpp
1
#include "trick/MemoryManager.hh"
2

3
int Trick::MemoryManager::is_alloced(void *addr) {
370✔
4

5
    ALLOC_INFO *info;
6

7
    pthread_mutex_lock(&mm_mutex);
370✔
8
    if ( (info = get_alloc_info_at( addr)) != NULL) {
370✔
UNCOV
9
        pthread_mutex_unlock(&mm_mutex);
×
UNCOV
10
        return (1);
×
11
    }
12
    pthread_mutex_unlock(&mm_mutex);
370✔
13
    return (0);
370✔
14
}
15

16
// MEMBER FUNCTION:
17
int Trick::MemoryManager::var_exists( std::string var_name) {
1,161✔
18
    VARIABLE_MAP::iterator variable_pos;
1,161✔
19

20
    pthread_mutex_lock(&mm_mutex);
1,161✔
21
    variable_pos = variable_map.find( var_name);
1,161✔
22

23
    if (variable_pos != variable_map.end()) {
1,161✔
24
        pthread_mutex_unlock(&mm_mutex);
527✔
25
        return (1);
527✔
26
    }
27
    pthread_mutex_unlock(&mm_mutex);
634✔
28
    return (0);
634✔
29
}
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

© 2025 Coveralls, Inc