Public test task package generation method and protection method based on Go language code segmentation
A technology of code segmentation and task packaging, which is applied in the field of unit crowdsourcing software testing, can solve problems such as low security and source code leakage, and achieve the effects of improving security, reducing the amount of code, and reducing the amount of information
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Such as figure 1 As shown, the present embodiment provides a method for generating a public test task package based on Go language code segmentation, including the following steps:
[0041] Step 1. Scan the Go language source code of the project file to obtain a statement summary table including all function declaration information in the Go language source code.
[0042] Step 2. Select the function declaration to be divided from the project file.
[0043] Step 3: Perform code segmentation on each function statement to be divided according to the statement summary table to generate a code segmentation unit. The code division unit is the smallest unit of code division.
[0044] Step 4. Pack a preset number of code segmentation units to generate a public testing task package.
[0045] Among them, the project file refers to all the files in a program, which are files under the computer directory and also the storage carrier of the program code. Such as "main.c means C ...
Embodiment 2
[0074] This embodiment provides a protection method based on the crowd-testing task package generation method described in Embodiment 1, including: ensuring the proportion of information of a single crowd-testing task package according to a preset threshold, thereby protecting Go The security of the language source code; wherein, the information ratio is the ratio of the number of declarations in a single crowd-testing task package to the number of declarations in the total declaration table.
[0075] Generally speaking, the larger the proportion of information, the more code the task contains, the easier it is to cause leakage risks. The contract issuer can set a threshold to ensure the proportion of information in a single task package. The threshold is a dynamically changing value. When the contracting party should delete a point in the claim relationship table that does not meet the threshold, it must recalculate the information ratio of each claim point in the new claim re...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com