MCPcopy Create free account
hub / github.com/attermann/microReticulum / testObjects

Function testObjects

test/test_objects/test_objects.cpp:8–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <stdio.h>
7
8void testObjects() {
9
10 printf("Creating a...\n");
11 A a = A();
12
13 printf("Creating b...\n");
14 B b = B();
15
16 // Following assignments are invalid because a and b are empty
17 //printf("Assigning b1...\n");
18 //B b1 = a.getB();
19 //printf("Assigning a1...\n");
20 //A a1 = b.getA();
21
22 printf("Creating ab...\n");
23 A ab = A(b);
24
25 printf("Creating ba...\n");
26 B ba = B(a);
27
28 printf("Assigning b2...\n");
29 B b2 = ab.getB();
30
31 printf("Assigning a2...\n");
32 A a2 = ba.getA();
33
34}
35
36
37void setUp(void) {

Callers

nothing calls this directly

Calls 4

AClass · 0.70
BClass · 0.70
getBMethod · 0.45
getAMethod · 0.45

Tested by

no test coverage detected