MediaWiki  1.32.5
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 More...
 
 testHashRingRatios2 ( $locations, $expected)
 providor_getHashLocationWeights2 More...
 
 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.

◆ testHashRingEjection()

HashRingTest::testHashRingEjection ( )

Definition at line 133 of file HashRingTest.php.

References true.

◆ testHashRingKetamaMode()

HashRingTest::testHashRingKetamaMode ( )

Definition at line 176 of file HashRingTest.php.

References $lines, HashRing\KEY_POS, and use.

◆ testHashRingMapping()

HashRingTest::testHashRingMapping ( )

Definition at line 27 of file HashRingTest.php.

◆ testHashRingRatios()

HashRingTest::testHashRingRatios (   $locations,
  $expectedHits 
)

providor_getHashLocationWeights

Definition at line 91 of file HashRingTest.php.

◆ testHashRingRatios2()

HashRingTest::testHashRingRatios2 (   $locations,
  $expected 
)

providor_getHashLocationWeights2

Definition at line 113 of file HashRingTest.php.

References as.

◆ testHashRingSerialize()

HashRingTest::testHashRingSerialize ( )

Definition at line 11 of file HashRingTest.php.

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


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