forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-functional-05.cpp
More file actions
39 lines (31 loc) · 950 Bytes
/
test-functional-05.cpp
File metadata and controls
39 lines (31 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/***************************
@Author: Chunel
@Contact: chunel@foxmail.com
@File: test-functional-05.cpp
@Time: 2024/1/6 16:45
@Desc:
***************************/
#include "../_Materials/TestInclude.h"
using namespace CGraph;
void test_functional_05() {
GPipelinePtr pipeline = GPipelineFactory::create();
CStatus status;
GElementPtr a, b, c, d = nullptr;
status += pipeline->registerGElement<TestReturnErrorGNode>(&a, {});
status += pipeline->registerGElement<TestReturnErrorGNode>(&b, {});
status += pipeline->registerGElement<TestReturnErrorGNode>(&c, {});
status += pipeline->registerGElement<TestReturnErrorGNode>(&d, {});
pipeline->init();
{
UTimeCounter counter("test_functional_05");
for (int i = 0; i < 10; i++) {
pipeline->run();
}
}
pipeline->destroy();
GPipelineFactory::remove(pipeline);
}
int main() {
test_functional_05();
return 0;
}