onnxruntime/winml/test/common/test.h
mindest 5b9369e93c
Fix typos according to reviewdog report. (#21335)
### Description
Fix typos based on reviewdog report but with some
exceptions/corrections.
2024-07-22 13:37:32 -07:00

36 lines
795 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
using VoidTest = void (*)();
using SetupClass = VoidTest;
using TeardownClass = VoidTest;
using SetupTest = VoidTest;
using TeardownTest = VoidTest;
#pragma warning(push)
#pragma warning(disable : 4505) // unreferenced local function has been removed
constexpr bool alwaysTrue() {
return true;
}
constexpr bool alwaysFalse() {
return false;
}
#define WINML_SUPPRESS_UNREACHABLE_BELOW(statement) \
if (alwaysTrue()) { \
statement; \
}
#ifdef BUILD_TAEF_TEST
#include "taefTestMacros.h"
#else
#include "googleTestMacros.h"
#endif
static void SkipTest() {
WINML_SKIP_TEST("");
}
#pragma warning(pop)