White-box testing regards the test object as an open box, allowing testers to use the internal logical structure and related information of the program to design or select test cases and test all logical paths of the program. By checking the state of the program at different points, it is determined whether the actual state is consistent with the expected state.
Therefore, when using the white-box testing method, the basis for determining the test data is the internal logic of the program.