You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
437 B

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include <gtest/gtest.h>
#include <string>
#include "opentelemetry/plugin/dynamic_load.h"
#include "opentelemetry/plugin/factory.h"
TEST(LoadFactoryTest, FailureTest)
{
std::string error_message;
auto factory = opentelemetry::plugin::LoadFactory("no-such-plugin", error_message);
EXPECT_EQ(factory, nullptr);
EXPECT_FALSE(error_message.empty());
}