summaryrefslogtreecommitdiff
path: root/test/unit/context/context_white.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-23 16:28:21 -0700
committerAina Niemetz <aina.niemetz@gmail.com>2018-08-23 16:28:21 -0700
commit11a34205808098e503f145b2a779078dd509729e (patch)
treebd4a69d62192273d4de237d8c7252448cef41c95 /test/unit/context/context_white.h
parent860ae582f334bea2835806b0d5044ca1b6e90d76 (diff)
Add missing overrides in unit tests (#2362)
Diffstat (limited to 'test/unit/context/context_white.h')
-rw-r--r--test/unit/context/context_white.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/unit/context/context_white.h b/test/unit/context/context_white.h
index 64e6e184b..2c1ef8e71 100644
--- a/test/unit/context/context_white.h
+++ b/test/unit/context/context_white.h
@@ -29,18 +29,14 @@ private:
Context* d_context;
-public:
+ public:
+ void setUp() override { d_context = new Context; }
- void setUp() {
- d_context = new Context;
- }
-
- void tearDown() {
- delete d_context;
- }
+ void tearDown() override { delete d_context; }
- void testContextSimple() {
- Scope *s = d_context->getTopScope();
+ void testContextSimple()
+ {
+ Scope* s = d_context->getTopScope();
TS_ASSERT(s == d_context->getBottomScope());
TS_ASSERT(d_context->getLevel() == 0);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback