MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / getStudentTestAverage

Function getStudentTestAverage

test/test_struct/test_struct_server_impl.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107float getStudentTestAverage(const student *stud)
108{
109 int16_t i = 0;
110 int16_t array_size = 3;
111 float total = 0;
112 for (; i < array_size; ++i)
113 {
114 total += stud->test_grades[i];
115 }
116 return float(total / array_size);
117}
118
119int32_t getStudentYear(const student *stud)
120{

Callers 2

getStudentTestAverageMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected