Electronic apparatus, managing code method and non-transitory computer-readable recording medium comprising a computer program for performing the method
Patent Information
- Application Number
- TW114128654
- Authority / Receiving Office
- TW · TW
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2025-06-24
- Filing Date
- 2025-07-29
- Publication Date
- 2026-10-21
- Estimated Expiration
- 2045-07-28
Smart Images

Figure TWG2TB001917321_001 
Figure TWG2TB001917321_002 
Figure TWG2TB001917321_003
Abstract
Claims
1. A code management method performed via an electronic device, comprising the following steps: providing a user interface including one or more tests in a first state, wherein the first state indicates that the test has been completed and can be deleted; obtaining a deletion request for first code associated with the first test among the one or more tests through the user interface; confirming the first logic selected as the final logic among a plurality of logics associated with the first test; deleting one or more sub-codes based on a set algorithm, wherein the one or more sub-codes are those other than the first sub-code corresponding to the first logic among the plurality of sub-codes included in the first code; and providing the first code with the one or more sub-codes deleted to the user.
2. The code management method of request item 1, wherein the step of deleting one or more of the above-mentioned sub-codes includes the following steps: deleting the variable declaration statement of the specified type in the variable declaration statement included in the above-mentioned first code; and deleting the branch statement of the specified type in the branch statement included in the above-mentioned first code.
3. As in the code management method of Request Item 2, the variable declaration statement of the above-defined type includes at least one of the following statements: a statement declaring the value corresponding to the final logic selected in the first test; a statement declaring whether the final logic selected in the first test is a logic value of type 1; a statement declaring whether at least one of the final logics selected in each of the plurality of tests, including the first test, is a logic value of type 1; a statement declaring whether at least one of the final logics selected in each of the plurality of tests is a logic value of type 1, and a statement declaring whether at least one of the final logics selected in each of the plurality of tests is a logic value of type 2; A statement declaring whether at least one of the final logics selected from the plurality of tests is a value of either the logic of type 1 or the logic of type 2; and a statement declaring whether at least one of the final logics selected from the plurality of tests is a value of the logic of type 1, and outputting that value as a return statement.
4. As in the code management method of request item 2, the branch statement of the type set above includes at least one of the following statements: a branch statement including a single conditional statement; a branch statement including multiple conditional statements; and a branch statement including a ternary operator substatement.
5. The code management method of request item 2 further includes the following steps: confirming that one or more branch statements in the branch statements included in the first code above include undeclared variables; and providing the user with information related to the one or more branch statements above.
6. The code management method of request item 1 further includes the following steps: confirming the user's review of the first code; and merging the first code reflecting the user's review into the main branch.
7. The code management method as requested in item 1, wherein the user interface displays a list of the plurality of tests, including one or more of the tests mentioned above.
8. The code management method as described in Request 7 further includes the following steps: obtaining information related to the plurality of tests from the server at a set period; and providing the user interface updated based on the information related to the plurality of tests.
9. The code management method as described in Request Item 8, wherein the information related to the second test among the plurality of tests includes at least one of the following: information related to the status of the second test; information related to the final logic selected in the second test; identification information of the second test; identification information of the pull request corresponding to the second test; and information related to the owner of the second test.
10. The code management method of request item 9, wherein the status of the second test mentioned above includes one of the following statuses: the first status mentioned above; the second status, which indicates that the test has not yet started; and the third status, which indicates that the test has been completed.
11. A non-transitory computer-readable recording medium recording a program for performing the method as described in claim 1 on a computer.
12. An electronic device comprising: transceiver; Memory; and a processor; and the processor is as follows: providing a user interface including one or more tests in a first state, wherein the first state indicates that the test has been completed and can be deleted; obtaining a deletion request for the first code related to the first test in the one or more tests through the user interface; confirming the first logic selected as the final logic among the plurality of logics related to the first test; deleting one or more sub-codes based on a set algorithm, wherein the one or more sub-codes are those other than the first sub-code corresponding to the first logic among the plurality of sub-codes included in the first code; and providing the first code with the one or more sub-codes deleted to the user.
Citation Information
Patent Citations
Workflow execution method, workflow arrangement method and electronic equipment
CN114912897A
Data compression application programming interface
CN115803720A
Code management method and device, storage medium and electronic equipment
CN115981631A
