acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
prober.h
1// Created by camilo with chatgpt and lowluds on 2025-02-12 21:32 <3ThomasBorregaardSorensen.cpp
2#pragma once
3
4
5namespace platform
6{
7
8
9 struct test_case :
10 virtual public ::particle
11 {
12
13
14 ::string m_strName;
15 ::procedure m_procedure;
16
17
18 test_case(const ::scoped_string& scopedstr, const ::procedure& procedure);
19 ~test_case() override;
20
21 ::string& name() { return m_strName; }
22 void run() override;
23
24
25 };
26
27
28 class CLASS_DECL_ACME prober :
29 virtual public ::particle
30 {
31 public:
32
33
34
35 ::pointer_array < test_case > m_testcasea;
36
37
38 virtual void add_prober(const ::scoped_string& name, const ::procedure& test);
39
40 void run() override;
41 void expect(bool condition, const ::scoped_string& message);
42
43
44
45 };
46
47
48}
49
50
51
52
Definition condition.h:12
Definition message.h:16
Definition prober.h:30
include "thread/AutoLock.h"
Definition _forward_declaration.h:877