summaryrefslogtreecommitdiff
path: root/tests/auto/qdoc/catch_conversions/qdoc_catch_conversions.h
blob: ef0cb2cefe1cda3fa50c8b5d04ad4747fa04c33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "qt_catch_conversions.h"

#include <boundaries/filesystem/directorypath.h>
#include <boundaries/filesystem/filepath.h>
#include <boundaries/filesystem/resolvedfile.h>

#include <ostream>

inline std::ostream& operator<<(std::ostream& os, const DirectoryPath& dirpath) {
    return os << dirpath.value().toStdString();
}

inline std::ostream& operator<<(std::ostream& os, const FilePath& filepath) {
    return os << filepath.value().toStdString();
}

inline std::ostream& operator<<(std::ostream& os, const ResolvedFile& resolved_file) {
    return os << "ResolvedFile{ query: " << resolved_file.get_query().toStdString() << ", " << "filepath: " << resolved_file.get_path() << " }";
}