GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tests/traces/files.cpp Lines: 7 8 87.5 %
Date: 2023-03-13 12:09:37 Branches: 8 18 44.4 %

Line Branch Exec Source
1
/*
2
 * Copyright 2010,
3
 * François Bleibel,
4
 * Olivier Stasse,
5
 *
6
 * CNRS/AIST
7
 *
8
 */
9
10
#include <boost/filesystem/operations.hpp>
11
#include <boost/filesystem/path.hpp>
12
#include <iostream>
13
#include <sot/core/debug.hh>
14
15
using namespace std;
16
17
1
int main() {
18

1
  boost::filesystem::create_directory("foobar");
19
1
  ofstream file("foobar/cheeze");
20
1
  file << "tastes good!\n";
21
1
  file.close();
22

1
  if (!boost::filesystem::exists("foobar/cheeze"))
23
    std::cout << "Something is rotten in foobar\n";
24
25
1
  return 0;
26
}