Package ghidra.program.model.data
Class StructureTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- ghidra.program.model.data.StructureTest
-
public class StructureTest extends AbstractGTest
-
-
Field Summary
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description StructureTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testAdd()
void
testAdd2()
void
testClearComponent()
void
testClearComponent1()
void
testCyclicDependencyProblem1()
Test that a structure can't be added to itself.void
testCyclicDependencyProblem2()
Test that a structure array can't be added to the same structure.void
testCyclicDependencyProblem3()
Test that a typedef of a structure can't be added to the structure.void
testCyclicDependencyProblem4()
Test that a structure can't contain another structure that contains it.void
testCyclicDependencyProblem5()
Test that a structure can't contain another structure that contains a typedef to it.void
testCyclicDependencyProblem6()
Test that a structure can't contain a union that contains that structure.void
testCyclicDependencyProblem7()
Test that a structure can't contain a typedef of a union that contains that structure.void
testCyclingProblem()
Test that a structure can't ...void
testDelete()
void
testDeleteAll()
void
testDeleteAtOffset()
void
testGetComponentAt()
void
testGetComponents()
void
testGetDataTypeAt()
void
testGetDefinedComponents()
void
testInsert_beginning()
void
testInsert_end()
void
testInsert_middle()
void
testInsertAtOffset()
void
testInsertAtOffset1()
void
testInsertAtOffset2()
void
testInsertAtOffsetPastEnd()
void
testInsertWithEmptySpace()
void
testNoCyclicDependencyProblemForArrayPointer()
Test that a structure can contain a pointer in it to a typedef of the same structure.void
testNoCyclicDependencyProblemForStructurePointer()
Test that a structure can contain a pointer in it to the same structure.void
testNoCyclicDependencyProblemForTypedefPointer()
Test that a structure can contain a pointer in it to a typedef of the same structure.void
testReplace()
void
testReplace1()
void
testReplace2()
void
testReplace3()
void
testReplaceWith()
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAdd
public void testAdd() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testAdd2
public void testAdd2() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInsert_beginning
public void testInsert_beginning()
-
testInsert_end
public void testInsert_end()
-
testInsert_middle
public void testInsert_middle()
-
testInsertWithEmptySpace
public void testInsertWithEmptySpace()
-
testInsertAtOffset
public void testInsertAtOffset()
-
testInsertAtOffset1
public void testInsertAtOffset1()
-
testInsertAtOffset2
public void testInsertAtOffset2()
-
testInsertAtOffsetPastEnd
public void testInsertAtOffsetPastEnd()
-
testClearComponent
public void testClearComponent()
-
testClearComponent1
public void testClearComponent1()
-
testReplace
public void testReplace()
-
testReplace1
public void testReplace1()
-
testReplace2
public void testReplace2()
-
testReplace3
public void testReplace3()
-
testDelete
public void testDelete()
-
testDeleteAtOffset
public void testDeleteAtOffset()
-
testDeleteAll
public void testDeleteAll()
-
testGetComponents
public void testGetComponents()
-
testGetDefinedComponents
public void testGetDefinedComponents()
-
testGetComponentAt
public void testGetComponentAt()
-
testGetDataTypeAt
public void testGetDataTypeAt()
-
testReplaceWith
public void testReplaceWith()
-
testCyclingProblem
public void testCyclingProblem()
Test that a structure can't ... ???
-
testCyclicDependencyProblem1
public void testCyclicDependencyProblem1()
Test that a structure can't be added to itself.
-
testCyclicDependencyProblem2
public void testCyclicDependencyProblem2()
Test that a structure array can't be added to the same structure.
-
testCyclicDependencyProblem3
public void testCyclicDependencyProblem3()
Test that a typedef of a structure can't be added to the structure.
-
testCyclicDependencyProblem4
public void testCyclicDependencyProblem4()
Test that a structure can't contain another structure that contains it.
-
testCyclicDependencyProblem5
public void testCyclicDependencyProblem5()
Test that a structure can't contain another structure that contains a typedef to it.
-
testCyclicDependencyProblem6
public void testCyclicDependencyProblem6()
Test that a structure can't contain a union that contains that structure.
-
testCyclicDependencyProblem7
public void testCyclicDependencyProblem7()
Test that a structure can't contain a typedef of a union that contains that structure.
-
testNoCyclicDependencyProblemForStructurePointer
public void testNoCyclicDependencyProblemForStructurePointer()
Test that a structure can contain a pointer in it to the same structure.
-
testNoCyclicDependencyProblemForTypedefPointer
public void testNoCyclicDependencyProblemForTypedefPointer()
Test that a structure can contain a pointer in it to a typedef of the same structure.
-
testNoCyclicDependencyProblemForArrayPointer
public void testNoCyclicDependencyProblemForArrayPointer()
Test that a structure can contain a pointer in it to a typedef of the same structure.
-
-