DrawKit
Vector and illustration framework for Mac OS X
Instance Methods | List of all members
TestBSPStorage Class Reference

Unit Test for the BSP storage sub-system. More...

Inheritance diagram for TestBSPStorage:
Inheritance graph
[legend]

Instance Methods

(void) - deletionTest:
 
(void) - insertionTest:canvasSize:
 
(void) - pointRetrievalTest:canvasSize:
 
(void) - populateStorage:canvasSize:
 
(void) - reorderingTest:
 
(void) - replacementTest:canvasSize:
 
(void) - repositioningTest:canvasSize:
 
(void) - retrievalTest:canvasSize:
 
(void) - testBSPStorage
 
(void) - testIndexedBSPStorage
 
(void) - verifyIndexedStorageIntegrity:
 
(void) - verifyIndexSpotcheck:
 
(void) - verifyRenumbering:
 
(void) - verifyStorageIntegrity:
 

Detailed Description

Unit Test for the BSP storage sub-system.

Author
Contributions from the community; see CONTRIBUTORS.md
Date
2005-2015

Unit Test for the BSP storage sub-system. This works by populating a storage instance with dummy objects (instances of testStorableObject) then randomly operating on them. The objects are randomly deleted, inserted, moved, reordered and retrieved many times. If any problems with the storage exist this should throw light on it.

The dummy objects conform to the storable protocol as they are required to do but otherwise merely store their parameters. This ensures that the tests here truly apply to the storage, and not to real storable objects. Other unit tests may test real storables in isolation.

Method Documentation

- (void) deletionTest: (id< DKObjectStorage >)  storage
- (void) insertionTest: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) pointRetrievalTest: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) populateStorage: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) reorderingTest: (id< DKObjectStorage >)  storage
- (void) replacementTest: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) repositioningTest: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) retrievalTest: (id< DKObjectStorage >)  storage
canvasSize: (NSSize)  canvasSize 
- (void) testBSPStorage
- (void) testIndexedBSPStorage
- (void) verifyIndexedStorageIntegrity: (DKBSPObjectStorage *)  storage
- (void) verifyIndexSpotcheck: (DKBSPDirectObjectStorage *)  storage
- (void) verifyRenumbering: (DKBSPDirectObjectStorage *)  storage
- (void) verifyStorageIntegrity: (DKBSPDirectObjectStorage *)  storage