MCPcopy
hub / github.com/redis/node-redis / testAll

Method testAll

packages/test-utils/lib/index.ts:865–879  ·  view source on GitHub ↗
(
    title: string,
    fn: (client: RedisClientType<M, F, S, RESP, TYPE_MAPPING> | RedisClusterType<M, F, S, RESP, TYPE_MAPPING/*, POLICIES*/>) => unknown,
    options: AllTestOptions<M, F, S, RESP, TYPE_MAPPING/*, POLICIES*/>
  )

Source from the content-addressed store, hash-verified

863 }
864
865 testAll<
866 M extends RedisModules = {},
867 F extends RedisFunctions = {},
868 S extends RedisScripts = {},
869 RESP extends RespVersions = 2,
870 TYPE_MAPPING extends TypeMapping = {}
871 // POLICIES extends CommandPolicies = {}
872 >(
873 title: string,
874 fn: (client: RedisClientType<M, F, S, RESP, TYPE_MAPPING> | RedisClusterType<M, F, S, RESP, TYPE_MAPPING/*, POLICIES*/>) => unknown,
875 options: AllTestOptions<M, F, S, RESP, TYPE_MAPPING/*, POLICIES*/>
876 ) {
877 this.testWithClient(`client.${title}`, fn, options.client);
878 this.testWithCluster(`cluster.${title}`, fn, options.cluster);
879 }
880
881 /**
882 * Tests with both a regular client and a cluster client, automatically generating the cluster

Callers 15

SMOVE.spec.tsFile · 0.80
XTRIM.spec.tsFile · 0.80
DUMP.spec.tsFile · 0.80
ZLEXCOUNT.spec.tsFile · 0.80
RPOP.spec.tsFile · 0.80
SORT.spec.tsFile · 0.80
XLEN.spec.tsFile · 0.80
SISMEMBER.spec.tsFile · 0.80

Calls 2

testWithClientMethod · 0.95
testWithClusterMethod · 0.95

Tested by

no test coverage detected