MediaWiki REL1_33
HashRingTest Class Reference

HashRing HashRing. More...

Inheritance diagram for HashRingTest:
Collaboration diagram for HashRingTest:

Public Member Functions

 testHashRingCollision ()
 
 testHashRingEjection ()
 
 testHashRingKetamaMode ()
 
 testHashRingMapping ()
 
 testHashRingRatios ( $locations, $expectedHits)
 providor_getHashLocationWeights
 
 testHashRingRatios2 ( $locations, $expected)
 providor_getHashLocationWeights2
 
 testHashRingSerialize ()
 

Static Public Member Functions

static providor_getHashLocationWeights ()
 
static providor_getHashLocationWeights2 ()
 

Detailed Description

HashRing HashRing.

Definition at line 7 of file HashRingTest.php.

Member Function Documentation

◆ providor_getHashLocationWeights()

static HashRingTest::providor_getHashLocationWeights ( )
static

Definition at line 101 of file HashRingTest.php.

◆ providor_getHashLocationWeights2()

static HashRingTest::providor_getHashLocationWeights2 ( )
static

Definition at line 124 of file HashRingTest.php.

◆ testHashRingCollision()

HashRingTest::testHashRingCollision ( )

Definition at line 167 of file HashRingTest.php.

References and().

◆ testHashRingEjection()

HashRingTest::testHashRingEjection ( )

Definition at line 133 of file HashRingTest.php.

References and().

◆ testHashRingKetamaMode()

HashRingTest::testHashRingKetamaMode ( )

Definition at line 176 of file HashRingTest.php.

References $lines, and(), and HashRing\KEY_POS.

◆ testHashRingMapping()

HashRingTest::testHashRingMapping ( )

Definition at line 27 of file HashRingTest.php.

References and().

◆ testHashRingRatios()

HashRingTest::testHashRingRatios ( $locations,
$expectedHits )

providor_getHashLocationWeights

Definition at line 91 of file HashRingTest.php.

References and().

◆ testHashRingRatios2()

HashRingTest::testHashRingRatios2 ( $locations,
$expected )

providor_getHashLocationWeights2

Definition at line 113 of file HashRingTest.php.

References and().

◆ testHashRingSerialize()

HashRingTest::testHashRingSerialize ( )

Definition at line 11 of file HashRingTest.php.

References $serialized, and(), serialize(), and unserialize().


The documentation for this class was generated from the following file: