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

Function TEST

src/test/name_ban_test.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <gtest/gtest.h>
4
5TEST(NameBan, Empty)
6{
7 CNameBans Bans;
8 EXPECT_FALSE(Bans.IsBanned(""));
9 EXPECT_FALSE(Bans.IsBanned("abc"));
10}
11
12TEST(NameBan, BanInfo)
13{

Callers

nothing calls this directly

Calls 3

IsBannedMethod · 0.45
BanMethod · 0.45
UnbanMethod · 0.45

Tested by

no test coverage detected