@Test
	public void testCompletionsFromArbitraryCaretPositions() {
		// '<caret>' designates the position of the caret 

		String testCase;
		testCase = "MY_TUP<caret>";
		assertCompletionsInclude(testCase, List.of("my_tuple"));
		assertCharsToRemoveEqualsTo(testCase, "my_tup".length());

		testCase = "employee.Get<caret>; (4, 2+2)";
		assertCompletionsInclude(testCase, List.of("getId", "getName"));
		assertCharsToRemoveEqualsTo(testCase, "Get".length());

		testCase = "bar = e<caret> if 2+2==4 else 'baz'";
		assertCompletionsInclude(testCase, List.of("error_function", "employee"));
		assertCharsToRemoveEqualsTo(testCase, "e".length());
	}
Tests for the Ghidra Python Interpreter's code completion functionality.
Ghidra/Features/Jython/src/test.slow/java/ghidra/jython/JythonCodeCompletionTest.java