mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 22:12:38 +08:00
Test fixes
This commit is contained in:
+2
-16
@@ -741,13 +741,6 @@ public class AnnotationTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
// Navigation performed by ProgramManager not tested due to use of spyServiceProvider
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testVariableAnnotation_Basic() {
|
||||
String rawComment = "{@variable Stack[0xa] MyFunction}";
|
||||
String display = CommentUtils.getDisplayString(rawComment, program);
|
||||
assertEquals("myVariable", display);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testVariableAnnotation_BasicModify() {
|
||||
String rawComment = "{@variable myVariable MyFunction}";
|
||||
@@ -765,21 +758,14 @@ public class AnnotationTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLocalAnnotation_UserMarked() {
|
||||
String rawComment = "{@variable Stack[0xa] MyFunction}";
|
||||
String display = CommentUtils.getDisplayString(rawComment, program);
|
||||
assertEquals("myVariable", display);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLocalAnnotation_UserMarkedModify() {
|
||||
public void testLocalAnnotation_VariableAddress() {
|
||||
String rawComment = "{@variable Stack[0xa] MyFunction}";
|
||||
String display = CommentUtils.fixupAnnotations(rawComment, program, Address.NO_ADDRESS);
|
||||
assertEquals("{@variable Stack[0xa] 01002000}", display);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLocalAnnotation_UserMarkedModify_NoFunction() {
|
||||
public void testLocalAnnotation_VariableAddress_NoFunction() {
|
||||
String rawComment = "{@variable Stack[0xa]}";
|
||||
String functionAddress = "01002000";
|
||||
Address entryPoint = addr(functionAddress);
|
||||
|
||||
Reference in New Issue
Block a user