blob: 05edc0a0e0635edbd4008a9b92c4bf9bcd64d22a [file] [log] [blame]
Patrick Venturef085d912019-03-15 08:50:00 -07001#include "handler.hpp"
2
3#include <string>
4#include <tuple>
5
6#include <gtest/gtest.h>
7
8namespace google
9{
10namespace ipmi
11{
12
13TEST(HandlerTest, EthCheckValidHappy)
14{
15 // The code returns compiled-in information, and therefore cannot really
16 // fail.
17 Handler h;
18 std::tuple<std::uint8_t, std::string> result = h.getEthDetails();
19 EXPECT_EQ(1, std::get<0>(result));
20 EXPECT_STREQ("eth0", std::get<1>(result).c_str());
21}
22
23// TODO: Add checks for other functions of handler.
24
25} // namespace ipmi
26} // namespace google