MCPcopy Create free account
hub / github.com/ddnet/ddnet / TEST

Function TEST

src/test/blocklist_driver_test.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <gtest/gtest.h>
6
7TEST(BlocklistDriver, Valid1)
8{
9#ifdef CONF_FAMILY_WINDOWS
10 int Major = -1, Minor = -1, Patch = -1;
11 bool WarningReq = false;
12 EXPECT_STREQ(ParseBlocklistDriverVersions("Intel", "Build 26.20.100.7810", Major, Minor, Patch, WarningReq), "This Intel driver version can cause crashes, please update it to a newer version.");
13 EXPECT_EQ(Major, 2);
14 EXPECT_EQ(Minor, 0);
15 EXPECT_EQ(Patch, 0);
16#endif
17}
18
19TEST(BlocklistDriver, Valid2)
20{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected