• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

GothenburgBitFactory / taskwarrior / 20735541101

06 Jan 2026 02:08AM UTC coverage: 85.151% (-0.01%) from 85.162%
20735541101

Pull #4019

github

web-flow
Merge a15f08c89 into ca9535606
Pull Request #4019: Update to TaskChampion 3.0.1

10 of 14 new or added lines in 3 files covered. (71.43%)

2 existing lines in 1 file now uncovered.

19595 of 23012 relevant lines covered (85.15%)

23480.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/test/tempdir.cpp
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright 2026, Tomas Babej, Paul Beckingham, Federico Hernandez.
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to deal
7
// in the Software without restriction, including without limitation the rights
8
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included
13
// in all copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
// SOFTWARE.
22
//
23
// https://www.opensource.org/licenses/mit-license.php
24
//
25
////////////////////////////////////////////////////////////////////////////////
26

27
#include <cmake.h>
28
// cmake.h include header must come first
29

30
#include <tempdir.h>
31

32
#include <filesystem>
33

34
TempDir::TempDir() {
2✔
35
  path = std::filesystem::temp_directory_path() / "taskwarrior_test";
2✔
36
  if (std::filesystem::exists(path)) {
2✔
37
    std::filesystem::remove_all(path);
1✔
38
  }
39
  std::filesystem::create_directories(path);
2✔
40
}
2✔
41

NEW
42
TempDir::~TempDir() {
×
NEW
43
  if (std::filesystem::exists(path)) {
×
NEW
44
    std::filesystem::remove_all(path);
×
45
  }
NEW
46
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc