UntestedFunction Type — typescript-sdk Architecture
Architecture documentation for the UntestedFunction type/interface in UntestedFunction.ts from the typescript-sdk codebase.
Entity Profile
Source Code
src/models/UntestedFunction.ts lines 34–89
export interface UntestedFunction {
/**
* File path relative to repository root.
* @type {string}
* @memberof UntestedFunction
*/
file: string;
/**
* Name of the function or method.
* @type {string}
* @memberof UntestedFunction
*/
name: string;
/**
* Line number where the function is declared.
* @type {number}
* @memberof UntestedFunction
*/
line: number;
/**
* Type of code element.
* @type {string}
* @memberof UntestedFunction
*/
type: UntestedFunctionTypeEnum;
/**
* Confidence level of the untested classification.
* @type {string}
* @memberof UntestedFunction
*/
confidence: UntestedFunctionConfidenceEnum;
/**
* Explanation of why this function is classified as untested.
* @type {string}
* @memberof UntestedFunction
*/
reason: string;
/**
*
* @type {NearestTestedCaller}
* @memberof UntestedFunction
*/
nearestTestedCaller?: NearestTestedCaller;
/**
* The test file that covers the most sibling functions in the same production file. This is the recommended file in which to add a test for this untested function.
* @type {string}
* @memberof UntestedFunction
*/
suggestedTestFile?: string;
/**
* Other functions in the same file that ARE tested, along with which test files cover them. Use this to see existing test patterns you can follow.
* @type {Array<TestedSibling>}
* @memberof UntestedFunction
*/
testedSiblings?: Array<TestedSibling>;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free