(
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*/>
)
| 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 |
no test coverage detected