I declared an array of struct and initialized it at compile time.
Now, for unit testing purposes, I would like to initialize it from a function which I can call from main() and from my unit tests.
For some reason, probably involving a 16 hour coding marathons & exhaustion, I can’t figure it out.
So assuming you have
OR you could:
but without looking at your code it’s hard to say what’s causing the trouble… i am SURE it’s probably something very trivial you are overlooking because you are tired and have been at it for 16 hours.