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

NREL / SolTrace / 19580451842

21 Nov 2025 06:52PM UTC coverage: 89.184% (+0.4%) from 88.811%
19580451842

push

github

web-flow
Merge pull request #85 from NREL/simdata_io_json

Add json import/export to SimulationData

423 of 451 new or added lines in 17 files covered. (93.79%)

9 existing lines in 3 files now uncovered.

5970 of 6694 relevant lines covered (89.18%)

7997777.28 hits per line

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

37.5
/coretrace/simulation_data/datetime.hpp
1
/**
2
 * @file datetime.hpp
3
 * @brief Date and time utilities for solar position calculations
4
 *
5
 * Provides date/time handling functions used in solar tracking
6
 * and sun position calculations for CST systems. Currently contains
7
 * placeholder structures for future implementation of comprehensive
8
 * date/time functionality.
9
 */
10

11
#ifndef SOLTRACE_DATETIME_H
12
#define SOLTRACE_DATETIME_H
13

14
// Dummy date-time class to stand in for future date-time representation
15

16
struct Date
17
{
18
public:
19

20
    // TODO: Implement this struct
21

22
    Date() {}
52✔
23

24
private:
25
};
26

27
struct Time
28
{
29
public:
30

31
    // TODO: Implement this struct
32

33
    Time() {}
52✔
34

35
private:
36
};
37

38
struct DateTime
39
{
40
public:
41
    Date my_date;
42
    Time my_time;
43

44
    DateTime() {}
52✔
45

46
    void set(const DateTime &dt)
×
47
    {
48
        // this->set_date(dt.get_date());
49
        // this->set_time(dt.get_time());
50
        this->my_date = dt.my_date;
51
        this->my_time = dt.my_time;
52
        return;
×
53
    }
54

UNCOV
55
    DateTime &operator=(const DateTime &rhs)
×
56
    {
UNCOV
57
        this->set(rhs);
×
UNCOV
58
        return *this;
×
59
    }
60

61
private:
62
};
63

64
#endif
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