X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fketama_test_cases.h;h=49d1eaa51c2672fa51f481976926660e241bdc61;hb=79382f4948d4734711dda45e1ac397bf7149076c;hp=a0d72b083b3ff3b1099fc801077a29d364ed7d3b;hpb=2d9a2c63003b507c96c6fe470a98c3dd41f4f29c;p=awesomized%2Flibmemcached diff --git a/tests/ketama_test_cases.h b/tests/ketama_test_cases.h index a0d72b08..49d1eaa5 100644 --- a/tests/ketama_test_cases.h +++ b/tests/ketama_test_cases.h @@ -1,11 +1,19 @@ -typedef struct { +/* + * Copyright (C) 2006-2009 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + */ + +#pragma once + +static struct { const char *key; unsigned long hash1; unsigned long hash2; const char *server; -} TestCase; - -static TestCase test_cases[99] = { +} ketama_test_cases[99]= { { "SVa_]_V41)", 443691461UL, 445379617UL, "10.0.1.7" }, { "*/Z;?V(.\\8", 1422915503UL, 1428303028UL, "10.0.1.1" }, { "30C1*Z*S/_", 1473165754UL, 1480075959UL, "10.0.1.2" }, @@ -106,3 +114,5 @@ static TestCase test_cases[99] = { { "\\MQ_XNT7L-", 1259349383UL, 1259509450UL, "10.0.1.7" }, { "VD6D0]ba_\\", 3842502950UL, 3842588691UL, "10.0.1.1" }, }; + +#include "ketama_test_cases_spy.h"