Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2022-01-18
ARMY ENG UNIV OF PLA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to overcome the deficiencies in the prior art, provide a method of generating and protecting a crowd testing task package based on Go language code segmentation, and solve the problem of source code leakage and low security in the process of unit crowdsourcing software testing technical problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Public test task package generation method and protection method based on Go language code segmentation
  • Public test task package generation method and protection method based on Go language code segmentation
  • Public test task package generation method and protection method based on Go language code segmentation

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a crowd test task package generation method and protection method based on Go language code segmentation, and the production method comprises the steps of scanning a Go language source code of a project file, and obtaining a declaration general table comprising all function declaration information in the Go language source code; selecting a function statement to be segmented from the project file; performing code segmentation on each to-be-segmented function statement according to the statement general table to generate code segmentation units; packaging the preset number of code segmentation units to generate a crowd test task package; according to the invention, the problem of source code leakage in the unit crowdsourcing software testing process can be effectively solved.

Description

technical field [0001] The invention relates to a crowd testing task package generation method and protection method based on Go language code segmentation, and belongs to the technical field of unit crowdsourcing software testing. Background technique [0002] In the process of unit crowdsourcing software testing, the main risk comes from the leakage of the intellectual property rights of the contracting party in an open environment. Ideally, unit crowdsourcing testing is trusted by everyone, the contracting party does not provide protection, and test workers test freely, making full use of the diversity of the crowdsourcing environment. This kind of crowdsourcing model in which crowdsourcing workers freely download, test, upload results and discuss with workers in the community but lacks supervision can be defined as "liberal crowdtesting". At present, most of the crowdsourcing software testing follows the free crowd testing mode, because most of the crowdsourcing softwar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/12G06F11/36
CPCG06F21/12G06F11/3684
Inventor 黄松惠战伟骆润王梅娟胡津昌李辉杜金虎龚士豪
Owner ARMY ENG UNIV OF PLA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products