Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

419 results about "Unit testing" patented technology

In computer programming, unit testing is a software testing method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use.

Code automatic generation and optimization system based on multiple modes

The invention discloses an automatic code generation and optimization system based on multiple modes, which relates to the technical field of automatic programming, and comprises a task analysis module for analyzing task description and constraint conditions in combination with a CLIPS rule engine and a knowledge graph and original data, identifying task targets and requirements, and outputting a task risk assessment report and a task intention set; the optimization decision module is used for selecting an optimal modal data subset by using a particle swarm optimization algorithm and a path planning algorithm, performing optimization adjustment according to task requirements, and outputting a code generation strategy; and the test evaluation module is used for evaluating and improving the unit test and the integration test by utilizing the variation test, carrying out quality and performance evaluation on the code through continuous integration and continuous delivery, and outputting a code evaluation report and an optimization suggestion. According to the method, the optimal modal data subset is dynamically screened, and the data transmission path is optimized, so that the code performance is ensured, the computing resource consumption is reduced, and the global optimization of the code generation strategy is realized.
Owner:FUJIAN QIFEI FUTURE TECH CO LTD

AI large model-based unit test case rapid generation method

The invention particularly relates to a unit test case rapid generation method based on an AI large model. According to the unit test case rapid generation method based on the AI large model, structure information is extracted through a static AST, an execution path is tracked through dynamic instrumentation, and code analysis is achieved; an analysis result is converted into cue words through AI, a multi-scene use case is generated through reasoning, and the multi-scene use case is matched with a language framework; counting row / branch / path coverage, identifying gaps and optimizing loop logic; hot spots and paths are displayed through a visual report, IDE one-key repair and manual correction of a feedback model are supported, intelligent retrieval and reuse of historical cases are realized by relying on FAISS, and the generation accuracy is continuously improved. According to the unit test case rapid generation method based on the AI large model, high-coverage-rate test case generation is achieved through the AI large model, the test case generation efficiency is remarkably improved, the test period is shortened, the software quality is improved, the workload of manually compiling and maintaining the test case is reduced, and the development cost is reduced.
Owner:INSPUR TIANYUAN COMM INFORMATION SYST CO LTD

Warehouse level code problem solving system based on large language model

The invention discloses a warehouse level code problem solving system based on a large language model, and relates to the technical field of software engineering, a source code file is extracted from a code warehouse, a static analysis tool is utilized to analyze codes, a warehouse level code graph is constructed, and then code entities and dependency relationships thereof are analyzed; based on the warehouse-level code graph, combining historical problem solving data, and constructing a dynamic evolution knowledge graph through continuous learning; through a context retrieval module, according to the context information of the current problem, dynamically retrieving related solution strategies and generating corresponding code patches, complementing or reviewing suggestions; the validity of the generated patch is verified through static analysis, unit testing and integration testing, and a problem solving strategy is optimized according to feedback of a developer. The problem solving efficiency and accuracy can be improved, the development cost is reduced, the solving process is gradually optimized through an intelligent feedback mechanism, a closed-loop feedback mechanism is formed, and therefore the increasingly complex software development requirements are met.
Owner:北京开放传神科技有限公司

Method and system for realizing automatic code generation by using multiple AI Agents

The invention discloses a method and a system for realizing automatic code generation by using multiple AI Agents, and relates to the field of electric digital data processing, a test driving agent receives a task transmitted by a previous node, and generates a task number, a task description, test data, a unit test script and a code statement; the code generation agent generates or updates codes according to the received task description and code declaration; the test driving agent returns an integrated test script and test data according to the task number; the continuous integration agent performs integration verification and regression test and feeds back information; the test driving agent returns a function test script, a performance test script and test data according to the task number; and the continuous deployment agent carries out continuous delivery and deployment and feeds back information. By means of mutual conversation and cooperative work of multiple AI Agents and in combination with a feedback mechanism, the problem that a single large model cannot complete complex software development tasks is solved, full-process operation automation can be achieved, and the code generation quality and efficiency can be improved.
Owner:LIMING VOCATIONAL UNIV

LLM-based constraint and self-repairing uniformization equipment knowledge graph automatic construction method

The invention belongs to the technical field of equipment knowledge engineering and natural language processing, and discloses an LLM-based constraint and self-repairing uniformization equipment knowledge graph automatic construction method. The method comprises the following steps: firstly, acquiring equipment related document data through network collection, document arrangement and database query; then, utilizing an equipment domain ontology and constraints as preposed soft and hard constraints, driving LLM to generate semantic intermediate representation, and obtaining candidate triples through structured compiling; then, a self-repairing closed loop is formed through semantic unit testing, logic consistency detection and evidence binding verification, and triples which violate constraints and have conflicts or illusions are automatically recognized and repaired; and finally, entity standard identification, cross-document duplicate removal combination and conflict resolution are realized through cross-segment unification and incremental alignment. According to the method, the fragile path that the LLM directly generates the triple and blindly stores the triple is avoided, the illusion and inconsistency problems are effectively inhibited, and the correctness, interpretability and maintainability of the equipment knowledge graph are remarkably improved.
Owner:SICHUAN UNIV

Data quality detection and improvement system for large language model

The invention provides a data quality detection and improvement system for a large language model, and relates to the technical field of code quality management. The data analysis and characteristic extraction module is used for extracting structured and semantic characteristics of codes and constructing a code distribution diagram; the multi-dimensional quality detection module comprehensively evaluates the data set quality from three aspects of semantic diversity, structural consistency and error mode; the code optimization and verification module generates an optimization suggestion based on a detection result, and verifies the effectiveness of an optimization scheme through dynamic evaluation and unit testing; the feedback and self-adaptive optimization module is combined with developer feedback and runtime performance test to dynamically adjust a repair strategy, and the complex code repair efficiency is improved through quantum computing auxiliary path search; according to the method, full-process automation from quality detection to optimization verification is achieved, the method is suitable for multi-dependency and multi-module complex code repair tasks, and the quality and efficiency of the code life cycle are improved.
Owner:北京开放传神科技有限公司

System and method for translating a first coding language into a second coding language

Systems and methods for translating a first coding language into a second coding language train a machine learning (ML) model on a first coding language specific data set relating to the first coding language, in which the ML model is trained to translate one or more code sets of the first coding language to respective one or more code sets of the second coding language; using the ML model, generate various unit test cases, in which the unit test cases run the one or more code sets of the second coding language in parallel with the one or more code sets of the first coding language; iteratively test and refine the ML model until a maturity threshold is reached; and upon reaching the maturity threshold, containerize the one or more code sets of the second coding language into one or more applications.
Owner:THE BANK OF NEW YORK MELLON

Full-process automatic unit testing method and device for AI chip operator and medium

The invention discloses a full-process automatic unit testing method, device and equipment for an AI chip operator, a medium and a product. The method comprises the following steps: generating an engineering directory and a test framework design document through an architect agent according to operator interface information and a DSL operator design document knowledge base; the method comprises the following steps of: generating a test code for unit test by a software engineer agent according to a test framework design document and a domain knowledge base, and storing the test code in an engineering directory; multiple rounds of interaction are carried out through a software engineer agent and a test engineer agent, a test code is gradually corrected into a target test code which can be successfully compiled, a generated test case can be successfully executed and the generated test case meets the code coverage rate requirement, and a target operator code passing a unit test is obtained; and submitting the target operator code and the target test code which pass the normativity check to a code warehouse through a code auditing engineer agent so as to automatically realize the whole-process unit test of the AI chip operator.
Owner:SHANGHAI YUNSUI TECHNOLOGY CO LTD

Method and device for automatically generating Java method unit test case based on AI

The invention discloses a method and device for automatically generating a Java method unit test case based on AI, and the method comprises the steps: building a structured annotation specification, carrying out the automatic traversal and intelligent analysis of a Java project, extracting a method signature, a parameter type and a parameter constraint condition, constructing a test data generation model, and carrying out the automatic generation of the test case. The model is transmitted to an AI service to analyze business logic and boundary conditions, test case codes are generated, test cases are optimized and integrated to a project test directory, finally, code areas with insufficient coverage are identified through coverage rate analysis, a test completion strategy is generated, and iterative perfection of the test cases is completed. The technical problems that in the prior art, project-level automatic test case generation cannot be achieved, the generated test case cannot fully cover business logic and boundary conditions, and context relation understanding is lacked are solved, full-automatic project-level test generation is achieved, and the test efficiency and quality are improved.
Owner:BEIJING YULORE INNOVATION TECH

Unit test case generation large model fine tuning method based on feedback reinforcement learning

The invention relates to the technical field of software testing, and discloses a unit test case generation large model fine tuning method based on feedback reinforcement learning, which comprises the following steps: constructing a unit test fine tuning data set based on demand driving; an Actor model is constructed, and optimization is carried out through a demand-driven unit test fine tuning data set; a Critic model is constructed, and optimization is carried out through a demand-driven unit test fine tuning data set; and generating a unit test case based on the optimized Actor model, mapping the unit test case into a single instant reward based on the optimized Critic model, and obtaining a large model generated based on the unit test case through reinforcement learning. The unit test case generation method capable of automatically generating high-quality unit test cases with aligned requirements and consistent styles is constructed, the test efficiency and quality are remarkably improved, and the bottlenecks of traditional test generation in manual dependence, coverage depth and requirement consistency are broken through.
Owner:NO 15 INST OF CHINA ELECTRONICS TECH GRP

Code generation method and device based on large model, equipment, medium and product

The invention discloses a code generation method and device based on a large model, equipment, a medium and a product, and the method comprises the steps: carrying out the code generation through a first code large model according to target code demand data, and obtaining an initial code; according to the first code snippet, generating a test code through a second code large model to obtain a unit test code; according to the unit test code and the initial code, code repair based on editing distance regularization is conducted through a third code large model, and a to-be-analyzed code is obtained; performing iterative optimization on the to-be-analyzed code and the unit test code to obtain a target code corresponding to the target code demand data; according to the method, code generation, unit test generation and code repair are carried out in a multi-model cooperation mode, the reliability and accuracy of code generation can be effectively improved, software security vulnerabilities are reduced, and therefore the stability and security of a software system are improved.
Owner:CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1

Full-automatic test equipment

The embodiment of the utility model discloses full-automatic testing equipment, the full-automatic testing equipment comprises a first conveying unit and a testing device, the testing device comprises a first transfer unit, a testing unit, a testing instrument and an upper computer, the first conveying unit is arranged on one side of the first transfer unit, and the testing unit is arranged on the other side of the first transfer unit. The conveying unit is used for conveying a to-be-tested plate to the first transfer unit; the first transfer unit is arranged on one side of the test unit and is used for conveying the to-be-tested plate to the test unit; the upper computer is connected with the test instrument, and the test instrument is connected with the to-be-tested plate through the test unit. By applying the full-automatic test equipment provided by the embodiment of the utility model, the test process can be fully automatically realized, manual participation is reduced, and compared with a semi-automatic mode in the prior art, the test efficiency of the full-automatic test equipment is greatly improved.
Owner:SUZHOU WEICHUANG ELECTRICAL EQUIP TECH

Vehicle unit test code generation method and device, equipment, medium and product

The invention relates to the technical field of vehicle software testing, and discloses a vehicle unit test code generation method and device, equipment, a medium and a product. The method comprises the steps of obtaining a tested code; the tested code and the intention prompt word are input into a large language model to be analyzed, a test intention is generated through the large language model, and the test intention is used for indicating the process needed for testing the tested code; inputting the test intention, the tested code and the template cue word into a large language model for analysis so as to generate a test strategy through the large language model, and recommending a code template and a parameter value required by the test from a template library; and integrating the recommended code templates according to the test strategy, and filling the parameter values into the code templates to obtain test codes. The AI illusion is reduced, and the accuracy of generating the test code is improved.
Owner:CHONGQING CHANGAN AUTOMOBILE CO LTD

Unit test method for generating discrimination model based on retrieval

The invention belongs to the technical field of software engineering, and particularly relates to a unit test method for generating a discrimination model based on retrieval. Searching a to-be-tested function, namely a test case pair, and establishing a code library; constructing an efficient code retriever based on code embedding and mixed feature extraction; constructing a multi-input matching discriminator network, preparing an own data set, and training the network; integrating the code library, the retriever and the discriminator into a local knowledge base, and performing fine adjustment on the large model based on the local knowledge base to obtain a retrieval generation discrimination model; and generating a test case based on the retrieval generation discrimination model, and testing. According to the method, the discrimination model is generated by using retrieval, corresponding change is automatically carried out according to the previous test case, and the test with higher coverage rate and quicker speed can be realized.
Owner:CHENGDU AIRCRAFT DESIGN INST OF AVIATION IND CORP OF CHINA +1

Code analysis method, system and equipment based on multi-programming language sandbox and medium

The invention provides a code analysis method, system and equipment based on a multi-programming language sandbox and a medium, and belongs to the technical field of code analysis and detection.The method specifically comprises the steps that an input code and a corresponding unit test sample are obtained, and a programming language type specified by the code is determined; sending the code and the unit test sample to a sub sandbox environment of a corresponding language for execution; a compiler in the sub sandbox reports a missing library according to a code compiling result and prompts a user to install the missing library; calling an analysis tool of a code analysis module to analyze the code; compiler feedback of the sub sandboxes and various analysis results generated by the code analysis module are integrated into a large language model; inputting the integration result into a large language model through a preset template; and analyzing and evaluating the code case based on the user instruction. Through multi-language sandbox isolation, automatic analysis tool integration and large language model enhancement, the security, efficiency and quality of a code processing flow are improved.
Owner:INSPUR ZHUOSHU BIG DATA IND DEV CO LTD

Vector optimization algorithm translation method and device oriented to RISC-V vector extension platform

The invention provides a vector optimization algorithm translation method and device oriented to an RISC-V vector extension platform, and relates to the technical field of computer software cross-architecture translations. The method comprises the steps that source codes of vector optimization algorithms written by other platforms and translation cues are input into a large language model; outputting a translation code of a vector optimization algorithm oriented to the RISC-V vector extension platform; the translated codes are input into a compiler to be compiled; under the condition that compiling succeeds, a compiling product is linked to the test suite to obtain an executable program, and unit testing is conducted on the executable program on the RISC-V vector extension device; and under the condition that the unit test is passed, determining that the translation code is a first version of correct translation code of a vector optimization algorithm oriented to the RISC-V vector extension platform. According to the method, a vector optimization algorithm written by using a special vector language for other platforms is efficiently translated to the RISC-V vector extension platform.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Conversational unit test generation using large language model

A large language model, trained on source code and natural language text generates a unit test for a change to a file in a pull request of a code repository. An ordered sequence of prompts is created and each is applied serially to the large language model to perform an individual task that leads to the generation of the unit test. The unit test may be added to an existing file or generated as a newly-created file. Each prompt includes the data from a previously-issued prompt of the ordered sequence in order for the model to retain contextual knowledge learned previously. The model generates the unit test as update commands when the unit test is added to an existing file.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

High-precision multi-interface collaborative FTU dynamic function test system and method

The invention discloses a high-precision multi-interface collaborative FTU dynamic function test system and method. The system comprises a protection unit, a test bearing unit, a core test unit and a control system, the protection unit is composed of an acrylic transparent protection cover and a metal plate box body, and a test space is formed. The test bearing unit comprises a quickly replaceable carrier plate, an access structure and a positioning assembly, and the positioning assembly comprises a positioning pin and a guide block; the core test unit comprises a pressing plate structure, an endoscope and a test module; the test module is integrated with a key, a short circuit bolt, a network port, a DB9 and an aviation plug test module; the safety detection unit comprises a safety grating, an anti-pinch device and a pre-feeding induction mechanism, and the safety grating is arranged at the inlet of the test space; and the control system controls starting, execution and result uploading of the test process. The method is used for solving the technical problems of insufficient positioning precision, poor interface test collaboration, low safety protection reliability and limited automation and intelligence level in the existing FTU test.
Owner:ZHUHAI GLEX AUTOMATION EQUIP CO LTD

Unit test method based on large model

The invention belongs to the technical field of software engineering, and particularly relates to software testing, in particular to a unit testing method based on a large model. Reading a source code from the tested unit; the code features are enhanced through an enhancement method; performing endpoint labeling and segmentation on the code by using a multi-dimensional code correlation comprehensive evaluation analysis method; inputting the segmented code into a code task unit test thinking chain template and generating a corresponding unit test; the segmented unit test is sent to coverage rate detection and coverage information analysis, and a unit test report is automatically generated according to a test report model; the uncovered information is fed back to the thinking chain to be repaired, and a repaired unit test case is generated and moved backwards. According to the method, the unit test case generated by the segmented feedback thinking is used, so that the test with higher coverage rate can be realized on the whole under the condition that a local high coverage effect is achieved.
Owner:CHENGDU AIRCRAFT DESIGN INST OF AVIATION IND CORP OF CHINA +1

Local communication unit testing device and method based on HPLC and HRF

The invention provides a local communication unit testing device and testing method based on HPLC and HRF, and relates to the technical field of communication testing, the local communication unit testing device based on HPLC and HRF comprises an HPLC communication module, an HRF communication module, a signal processing module, a control module, an environmental interference simulation module and an output module, according to the invention, the test efficiency and the communication reliability are significantly improved through dynamic spectrum allocation, dual-mode collaborative test and high-precision analysis technologies, a data-driven decision basis is provided for equipment optimization, an FPGA + DSP collaborative architecture is adopted, time-frequency joint demodulation of HPLC and HRF signals is realized, and the performance of the system is improved. And performing dynamic classification comprehensive evaluation on the communication quality in combination with a machine learning algorithm.
Owner:ZHEJIANG SONGXIA ELECTRIC METER

Systems and methods for generating code output

A method of generating a code output in response to a natural language problem description. The method includes: receiving the natural language problem description; generating, by a neural network based language model, a first candidate code snippet based on a first input prompt combining the natural language problem description and a first instruction; executing, at a code execution environment, the first candidate code snippet based on a unit test thereby producing a first feedback reflecting a correctness of the first candidate code snippet; generating, by the neural network based language model, a second candidate code snippet based on a second input prompt combining the natural language problem description, the first candidate code snippet, and the first feedback; and executing, at the code execution environment, the second candidate code snippet based on a runtime test thereby producing a second feedback reflecting a runtime efficiency of the second candidate code snippet.
Owner:SALESFORCE INC

Unit test code generation method, system, equipment and medium

The invention discloses a unit test code generation method, system and device and a medium, which are applied to the technical field of code generation, and comprise the following steps: performing program structure interface analysis and abstract syntax tree analysis on a target engineering code to obtain a structured meta-information set and a source code syntax structure model; generating a structured context feature vector based on the structured meta-information set and the source code grammar structure model, and retrieving a historical test case sample set from a historical test case database, wherein the global line coverage rate weighted similarity of the historical test case sample set and the structured context feature vector meets a matching condition; after Prompt template filling of different test subtasks is performed based on a historical test case sample set and structured context data through an Agent agent, different modular test codes are generated by adopting different test code generation models, and closed-loop verification is performed after the different modular test codes are integrated into unit test codes. Therefore, the code quality, practicability and adaptability are improved.
Owner:THE BANK OF EAST ASIA (CHINA) LTD

Automatic generation of assert statements for unit test cases

An assert statement generator employs a neural transformer model with attention to generate candidate assert statements for a unit test method that tests a focal method. The neural transformer model is pre-trained with source code programs and natural language text and fine-tuned with test-assert triplets. A test-assert triplet includes a source code snippet that includes: (1) a unit test method with an assert placeholder; (2) the focal method; and (3) a corresponding assert statement. In this manner, the neural transformer model is trained to learn the semantics and statistical properties of a natural language, the syntax of a programming language, and the relationships between the code elements of the programming language and the syntax of an assert statement.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Power supply aging test system

The invention relates to the field of power supply testing, in particular to a power supply aging test system which comprises a power supply aging test system and a power supply aging test method. The system comprises an industrial control computer, an aging rack, an energy recovery module, an electronic load module and a closed test cabin, the industrial control computer controls aging test parameters and data acquisition, the multi-channel electronic load module is arranged in the aging rack, the energy recovery module converts electric energy into energy which can be stored or fed back to a power grid, and the closed test cabin is integrated with a temperature and humidity control unit. The test method comprises the steps of connecting a to-be-tested power supply to equipment, setting related parameters, starting a test, monitoring data, performing anomaly detection, generating a test report and the like. The technical effects of multi-channel synchronous test, energy recovery, accurate temperature and humidity control, accurate anomaly detection, detailed test report generation, remote monitoring support and the like are achieved.
Owner:DONGGUAN JIECHUANG ELECTRONICS MONITORING & CONTROL

Code sample optimization method and device based on language large model

The invention relates to the technical field of computers, in particular to a code sample optimization method and system based on a language large model, and the method comprises the steps: firstly, obtaining a source code sample, determining a code sample boundary, and generating a mark sequence; then, based on a compiling result, a static analysis result and a unit test result, a quality label is generated, and a training sample set is formed; then, taking a Transform neural network model of bidirectional context coding as an encoder, and carrying out training under the supervision of quality annotation to obtain a quality evaluation model; and finally, screening according to a preset quality score threshold to obtain a high-quality code sample set. According to the technical scheme, by combining the deep grammar analysis and context understanding of the code samples, the accuracy and efficiency of automatic screening are improved, manual intervention is reduced, and the method can adapt to automatic evaluation of a large-scale code library.
Owner:CHONGQING ZHONGKE YUNCONG TECH CO LTD +1

Method for testing memory chip with redundancy function

PendingCN121506228AStatic storageMemory chipIncremental test
The invention discloses a method for realizing a redundant function memory chip test, which relates to the technical field of memory chip test, and comprises the following steps: calculating hyperedge coupling strength based on a hypergraph fault model, and generating a test vector sequence and a memory unit test instruction by adopting a weighted flipping mode according to the hyperedge coupling strength; injecting the test vector sequence into a tested memory chip, executing memory unit test instructions one by one, and capturing a failure unit coordinate and a failure mode category at the same time; constructing a Hall triad based on the failure unit coordinates and the failure mode category, executing theorem proving on the Hall triad by using a theorem proving device to verify the test completeness, generating an increment test vector when the verification fails, executing theorem proving again, and recording the result of the test completeness; according to the method, the hypergraph fault model is established, so that the coverage rate of non-independent faults is increased, the number of redundant test instructions is reduced, the test time and resource consumption are reduced, and the defect detection efficiency is improved.
Owner:弘润半导体(苏州)有限公司

Computerized system, method and apparatus for integrated device testing, verification and configuration

Disclosed are systems and methods that provide a novel functional, computerized testing framework for an integrated, unified standard testbed for network (e.g., WiFi) devices. In some aspects, the disclosed framework involves components referred to as OpenSync Reference Testbed (OSRT) and Unified Standard Testbed (USTB). OSRT provides a reference testbed for end-to-end (E2E) system testing for firmware release verification (FRV) and for functional unit testing (FUT). USTB corresponds to standard devices, software images, wiring schemes, and the process for setting up and running a functional testbed for networked devices. In some embodiments, OSRT can include a fully assembled USTB with a predetermined number (e.g., three (3)) of reference extenders, which can allow for the testing configuration and functionality discussed herein. The disclosed framework can provide novel functionality for testing, verifying and configuring network equipment and connections for a particular and / or set of software stacks.
Owner:PLUME DESIGN INC

Software unit testing method and device, computer equipment and storage medium

The invention relates to the technical field of artificial intelligence, can be applied to the medical field and the financial field, and discloses a software unit testing method and device, computer equipment and a storage medium. The method comprises the steps that an original version and an updated version of a production code are received, and the code difference between the original version and the updated version is analyzed based on a large language model; identifying an affected target element; calling a code analysis tool to obtain a context definition corresponding to the target element; constructing a structured prompt in combination with the code difference and the context definition, and generating an initial version of the updated unit test based on the structured prompt; and performing a verification correction loop test on the initial version of the unit test until a preset termination condition is met or the maximum number of iterations is reached, and outputting a corresponding test result. The method can solve the problems that the context is not fully acquired, only can be repaired but cannot be enhanced, the accuracy is low due to lack of verification and correction of a closed loop, task processing is not specialized due to single architecture, and the like.
Owner:PING AN TECH (SHENZHEN) CO LTD

Intelligent optimization method for unit test coverage rate guided by using control flow

PendingCN121349900AError detection/correctionCode generationControl flow analysis
The invention discloses a unit test coverage rate intelligent optimization method guided by using a control flow. The method comprises the following steps: S1, obtaining and preprocessing a to-be-tested code; s2, a cycle generation stage: calling a predefined tool by using a large generative model to dynamically obtain a code to be tested, and generating a unit test code; s3, repairing the unit test codes which fail to compile or run; s4, acquiring the coverage rate and coverage information of the unit test code; performing control flow analysis on the to-be-detected code according to the coverage information and the coverage rate, and outputting a control flow information set; and uncovered control flow information is fed back to the generation cycle stage as output. According to the method, the automation degree of unit test generation based on the large model is high, the effectiveness of the codes generated by the large model is effectively improved, the coverage rate of the unit test codes generated by the large model is obviously improved, and the problems that the effectiveness of the codes generated by other unit test automatic generation tools based on the large model is low and the coverage rate in a complex scene is low are solved.
Owner:HANGZHOU DIANZI UNIV +2

Systems and methods for automated code validation

Systems and methods in accordance with embodiments of the invention can automatically track the creation of documents, such as source code files and unit tests, along with the development of those documents. The document creation and development workflow can be automatically validated against a defined set of standards to ensure that the documents are properly created. The review of the documents can also be automatically validated to ensure that the review process is properly completed. A variety of metrics can be generated regarding errors and issues identified during the validation processes. These metrics can be used to identify common issues, automatically generate proactive suggestions to avoid issues during document creation and testing, and / or generate developer profiles indicating the performance of particular developers.
Owner:ALLSTATE INSURANCE COMPANY