Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
 
#pragma once
 
#include <string>
 
#include "gtest/gtest.h"
 
namespace onnxruntime::test {
 
// Returns the current test's name ("<test suite name>.<test name>") if a test is running, or "unknown".
inline std::string CurrentTestName() {
  const auto* const test_info = testing::UnitTest::GetInstance()->current_test_info();
  if (test_info == nullptr) {
    return "unknown";
  }
  return std::string{test_info->test_suite_name()} + "." + test_info->name();
}
 
}  // namespace onnxruntime::test