[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Pear/DB/tests/NestedSet/ -> creation.php (sommaire)

(pas de description)

Poids: 219 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

tests_NestedSet_creation:: (6 méthodes):
  test_createRootNode()
  test_createRootNode__mixup()
  test_createSubNode()
  test_createRightNode()
  test_createLeftNode()
  test_createNodes__random()


Classe: tests_NestedSet_creation  - X-Ref

UnitTest
Creation method tests

test_createRootNode($dist = false)   X-Ref
tests_NestedSet_common::test_createRootNode()

Simply create some rootnodes and see if this works

return: array Array of created rootnodes

test_createRootNode__mixup()   X-Ref
tests_NestedSet_common::test_createRootNode__mixup()

Create some rootnodes and create another rootnodes inbetween the others to look
if the ordering is right afterwards

return: array Array of created rootnodes

test_createSubNode()   X-Ref
tests_NestedSet_common::test_createSubNode()

Recursively create a tree using createSubNode and verify the results

return: array Parent/Child relationship tree

test_createRightNode()   X-Ref
tests_NestedSet_common::test_createRightNode()

Create some right nodes and query some meta informations

return: bool True on completion

test_createLeftNode()   X-Ref
tests_NestedSet_common::test_createLeftNode()

Create some left nodes and query some meta informations

return: bool True on completion

test_createNodes__random()   X-Ref
tests_NestedSet_common::createSubNode__random()

Create some rootnodes and randomly call createSubNode() or createRightNode()
on the growing tree. This creates a very random structure which
is intended to be a real life simulation to catch bugs not beeing
catched by the other tests.
Some basic regression tests including _traverseChildren() with a relation tree
are made.

return: bool True on completion



Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7