MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / readFile

Method readFile

test/groot_test_base.cpp:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <QKeyEvent>
4
5QByteArray GrootTestBase::readFile(const char *name)
6{
7 QString fileName(name);
8 QFile file(fileName);
9 bool ret = file.open(QIODevice::ReadOnly);
10 QByteArray data = file.readAll();
11 file.close();
12 if( !ret ){
13 QTest::qFail("can't load file", __FILE__, __LINE__);
14 }
15 return data;
16}
17
18void GrootTestBase::sleepAndRefresh(int ms)
19{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected