[go: up one dir, main page]

File: log.cc

package info (click to toggle)
criterion 2.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,864 kB
  • sloc: ansic: 17,945; cpp: 774; python: 74; makefile: 25; sh: 19
file content (18 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <criterion/criterion.h>
#include <criterion/logging.h>

using criterion::logging::info;
using criterion::logging::warn;
using criterion::logging::error;

Test(logging, stream) {
    info << "This is an informational message. They are not displayed "
        "by default."
         << std::endl;
    warn << "This is a warning. They indicate some possible malfunction "
        "or misconfiguration in the test."
         << std::endl;
    error << "This is an error. They indicate serious problems and "
        "are usually shown before the test is aborted."
          << std::endl;
}