Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
TEST(NameBan, Empty)
6
{
7
CNameBans Bans;
8
EXPECT_FALSE(Bans.IsBanned(
""
));
9
EXPECT_FALSE(Bans.IsBanned(
"abc"
));
10
}
11
12
TEST(NameBan, BanInfo)
13
{
Callers
nothing calls this directly
Calls
3
IsBanned
Method · 0.45
Ban
Method · 0.45
Unban
Method · 0.45
Tested by
no test coverage detected