Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
app-config-test.cpp
Go to the documentation of this file.
1/*
2 Appconfig(Test) - accessing the always-available AppState singleton
3
4 Copyright (C)
5 2008, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12* *****************************************************************/
13
20#include "lib/test/run.hpp"
22#include "lib/symbol.hpp"
23#include "lib/util.hpp"
24
25using lib::Literal;
26using util::isnil;
27
28
29
30namespace lumiera {
31namespace test {
32
33
34 class Appconfig_test : public Test
35 {
36 virtual void
37 run (Arg)
38 {
40 }
41
42
45 {
46 Literal key("Lumiera.version");
47 string ver = Config::get(key);
48 CHECK (!isnil(ver));
49 }
50 };
51
52
53 LAUNCHER (Appconfig_test, "function common");
54
55
56}} // namespace util::test
57
Inline string literal.
Definition symbol.hpp:78
static string get(lib::Literal key)
The lumiera::Config wrapper class addresses two issues.
Lumiera public interface.
Definition advice.hpp:102
Test runner and basic definitions for tests.
bool isnil(lib::time::Duration const &dur)
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Definition run.hpp:116
Marker types to indicate a literal string and a Symbol.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...