@supermodeltools/sdk 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/DefaultApi.d.ts +46 -2
- package/dist/apis/DefaultApi.js +183 -1
- package/dist/esm/apis/DefaultApi.d.ts +46 -2
- package/dist/esm/apis/DefaultApi.js +184 -2
- package/dist/esm/models/AffectedEntryPoint.d.ts +53 -0
- package/dist/esm/models/AffectedEntryPoint.js +57 -0
- package/dist/esm/models/AffectedFile.d.ts +43 -0
- package/dist/esm/models/AffectedFile.js +48 -0
- package/dist/esm/models/AffectedFunction.d.ts +78 -0
- package/dist/esm/models/AffectedFunction.js +73 -0
- package/dist/esm/models/AliveCodeItem.d.ts +1 -1
- package/dist/esm/models/AliveCodeItem.js +1 -1
- package/dist/esm/models/BlastRadius.d.ts +71 -0
- package/dist/esm/models/BlastRadius.js +65 -0
- package/dist/esm/models/CircularDependencyCycle.d.ts +65 -0
- package/dist/esm/models/CircularDependencyCycle.js +63 -0
- package/dist/esm/models/CircularDependencyMetadata.d.ts +61 -0
- package/dist/esm/models/CircularDependencyMetadata.js +56 -0
- package/dist/esm/models/CircularDependencyResponse.d.ts +46 -0
- package/dist/esm/models/CircularDependencyResponse.js +51 -0
- package/dist/esm/models/CircularDependencyResponseAsync.d.ts +66 -0
- package/dist/esm/models/CircularDependencyResponseAsync.js +60 -0
- package/dist/esm/models/CircularDependencySummary.d.ts +55 -0
- package/dist/esm/models/CircularDependencySummary.js +56 -0
- package/dist/esm/models/ClassificationStats.d.ts +1 -1
- package/dist/esm/models/ClassificationStats.js +1 -1
- package/dist/esm/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelope.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeAsync.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeAsync.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeMetadata.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeMetadata.js +1 -1
- package/dist/esm/models/CodeGraphNode.d.ts +1 -1
- package/dist/esm/models/CodeGraphNode.js +1 -1
- package/dist/esm/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/esm/models/CodeGraphRelationship.js +1 -1
- package/dist/esm/models/CodeGraphStats.d.ts +1 -1
- package/dist/esm/models/CodeGraphStats.js +1 -1
- package/dist/esm/models/CoverageByDomain.d.ts +49 -0
- package/dist/esm/models/CoverageByDomain.js +52 -0
- package/dist/esm/models/CoverageByFile.d.ts +55 -0
- package/dist/esm/models/CoverageByFile.js +56 -0
- package/dist/esm/models/CriticalFile.d.ts +53 -0
- package/dist/esm/models/CriticalFile.js +57 -0
- package/dist/esm/models/CrossDomainDependency.d.ts +43 -0
- package/dist/esm/models/CrossDomainDependency.js +48 -0
- package/dist/esm/models/CycleEdge.d.ts +43 -0
- package/dist/esm/models/CycleEdge.js +48 -0
- package/dist/esm/models/DeadCodeAnalysisMetadata.d.ts +1 -1
- package/dist/esm/models/DeadCodeAnalysisMetadata.js +1 -1
- package/dist/esm/models/DeadCodeAnalysisResponse.d.ts +1 -1
- package/dist/esm/models/DeadCodeAnalysisResponse.js +1 -1
- package/dist/esm/models/DeadCodeAnalysisResponseAsync.d.ts +1 -1
- package/dist/esm/models/DeadCodeAnalysisResponseAsync.js +1 -1
- package/dist/esm/models/DeadCodeCandidate.d.ts +1 -1
- package/dist/esm/models/DeadCodeCandidate.js +1 -1
- package/dist/esm/models/DomainClassAssignment.d.ts +1 -1
- package/dist/esm/models/DomainClassAssignment.js +1 -1
- package/dist/esm/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponse.js +1 -1
- package/dist/esm/models/DomainClassificationResponseAsync.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponseAsync.js +1 -1
- package/dist/esm/models/DomainClassificationResponseGraph.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponseGraph.js +1 -1
- package/dist/esm/models/DomainFileAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFileAssignment.js +1 -1
- package/dist/esm/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFunctionAssignment.js +1 -1
- package/dist/esm/models/DomainRelationship.d.ts +1 -1
- package/dist/esm/models/DomainRelationship.js +1 -1
- package/dist/esm/models/DomainSummary.d.ts +1 -1
- package/dist/esm/models/DomainSummary.js +1 -1
- package/dist/esm/models/EntryPoint.d.ts +1 -1
- package/dist/esm/models/EntryPoint.js +1 -1
- package/dist/esm/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/esm/models/ErrorDetailsInner.js +1 -1
- package/dist/esm/models/FunctionDescription.d.ts +1 -1
- package/dist/esm/models/FunctionDescription.js +1 -1
- package/dist/esm/models/ImpactAnalysisMetadata.d.ts +61 -0
- package/dist/esm/models/ImpactAnalysisMetadata.js +56 -0
- package/dist/esm/models/ImpactAnalysisResponse.d.ts +46 -0
- package/dist/esm/models/ImpactAnalysisResponse.js +51 -0
- package/dist/esm/models/ImpactAnalysisResponseAsync.d.ts +66 -0
- package/dist/esm/models/ImpactAnalysisResponseAsync.js +60 -0
- package/dist/esm/models/ImpactGlobalMetrics.d.ts +39 -0
- package/dist/esm/models/ImpactGlobalMetrics.js +42 -0
- package/dist/esm/models/ImpactResult.d.ts +60 -0
- package/dist/esm/models/ImpactResult.js +61 -0
- package/dist/esm/models/ImpactTarget.d.ts +59 -0
- package/dist/esm/models/ImpactTarget.js +57 -0
- package/dist/esm/models/JobStatus.d.ts +1 -1
- package/dist/esm/models/JobStatus.js +1 -1
- package/dist/esm/models/ModelError.d.ts +1 -1
- package/dist/esm/models/ModelError.js +1 -1
- package/dist/esm/models/NearestTestedCaller.d.ts +43 -0
- package/dist/esm/models/NearestTestedCaller.js +48 -0
- package/dist/esm/models/SubdomainSummary.d.ts +1 -1
- package/dist/esm/models/SubdomainSummary.js +1 -1
- package/dist/esm/models/SupermodelArtifact.d.ts +1 -1
- package/dist/esm/models/SupermodelArtifact.js +1 -1
- package/dist/esm/models/SupermodelIR.d.ts +1 -1
- package/dist/esm/models/SupermodelIR.js +1 -1
- package/dist/esm/models/SupermodelIRAsync.d.ts +1 -1
- package/dist/esm/models/SupermodelIRAsync.js +1 -1
- package/dist/esm/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/esm/models/SupermodelIRGraph.js +1 -1
- package/dist/esm/models/SupermodelIRStats.d.ts +1 -1
- package/dist/esm/models/SupermodelIRStats.js +1 -1
- package/dist/esm/models/TestCoverageMapMetadata.d.ts +85 -0
- package/dist/esm/models/TestCoverageMapMetadata.js +72 -0
- package/dist/esm/models/TestCoverageMapResponse.d.ts +67 -0
- package/dist/esm/models/TestCoverageMapResponse.js +64 -0
- package/dist/esm/models/TestCoverageMapResponseAsync.d.ts +66 -0
- package/dist/esm/models/TestCoverageMapResponseAsync.js +60 -0
- package/dist/esm/models/TestFileInfo.d.ts +49 -0
- package/dist/esm/models/TestFileInfo.js +52 -0
- package/dist/esm/models/TestedFunction.d.ts +80 -0
- package/dist/esm/models/TestedFunction.js +76 -0
- package/dist/esm/models/TestedSibling.d.ts +43 -0
- package/dist/esm/models/TestedSibling.js +48 -0
- package/dist/esm/models/UnassignedFunction.d.ts +1 -1
- package/dist/esm/models/UnassignedFunction.js +1 -1
- package/dist/esm/models/UntestedFunction.d.ts +103 -0
- package/dist/esm/models/UntestedFunction.js +88 -0
- package/dist/esm/models/index.d.ts +28 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AffectedEntryPoint.d.ts +53 -0
- package/dist/models/AffectedEntryPoint.js +64 -0
- package/dist/models/AffectedFile.d.ts +43 -0
- package/dist/models/AffectedFile.js +54 -0
- package/dist/models/AffectedFunction.d.ts +78 -0
- package/dist/models/AffectedFunction.js +80 -0
- package/dist/models/AliveCodeItem.d.ts +1 -1
- package/dist/models/AliveCodeItem.js +1 -1
- package/dist/models/BlastRadius.d.ts +71 -0
- package/dist/models/BlastRadius.js +72 -0
- package/dist/models/CircularDependencyCycle.d.ts +65 -0
- package/dist/models/CircularDependencyCycle.js +70 -0
- package/dist/models/CircularDependencyMetadata.d.ts +61 -0
- package/dist/models/CircularDependencyMetadata.js +62 -0
- package/dist/models/CircularDependencyResponse.d.ts +46 -0
- package/dist/models/CircularDependencyResponse.js +57 -0
- package/dist/models/CircularDependencyResponseAsync.d.ts +66 -0
- package/dist/models/CircularDependencyResponseAsync.js +67 -0
- package/dist/models/CircularDependencySummary.d.ts +55 -0
- package/dist/models/CircularDependencySummary.js +62 -0
- package/dist/models/ClassificationStats.d.ts +1 -1
- package/dist/models/ClassificationStats.js +1 -1
- package/dist/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/models/CodeGraphEnvelope.js +1 -1
- package/dist/models/CodeGraphEnvelopeAsync.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeAsync.js +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/models/CodeGraphEnvelopeMetadata.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeMetadata.js +1 -1
- package/dist/models/CodeGraphNode.d.ts +1 -1
- package/dist/models/CodeGraphNode.js +1 -1
- package/dist/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/models/CodeGraphRelationship.js +1 -1
- package/dist/models/CodeGraphStats.d.ts +1 -1
- package/dist/models/CodeGraphStats.js +1 -1
- package/dist/models/CoverageByDomain.d.ts +49 -0
- package/dist/models/CoverageByDomain.js +58 -0
- package/dist/models/CoverageByFile.d.ts +55 -0
- package/dist/models/CoverageByFile.js +62 -0
- package/dist/models/CriticalFile.d.ts +53 -0
- package/dist/models/CriticalFile.js +64 -0
- package/dist/models/CrossDomainDependency.d.ts +43 -0
- package/dist/models/CrossDomainDependency.js +54 -0
- package/dist/models/CycleEdge.d.ts +43 -0
- package/dist/models/CycleEdge.js +54 -0
- package/dist/models/DeadCodeAnalysisMetadata.d.ts +1 -1
- package/dist/models/DeadCodeAnalysisMetadata.js +1 -1
- package/dist/models/DeadCodeAnalysisResponse.d.ts +1 -1
- package/dist/models/DeadCodeAnalysisResponse.js +1 -1
- package/dist/models/DeadCodeAnalysisResponseAsync.d.ts +1 -1
- package/dist/models/DeadCodeAnalysisResponseAsync.js +1 -1
- package/dist/models/DeadCodeCandidate.d.ts +1 -1
- package/dist/models/DeadCodeCandidate.js +1 -1
- package/dist/models/DomainClassAssignment.d.ts +1 -1
- package/dist/models/DomainClassAssignment.js +1 -1
- package/dist/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/models/DomainClassificationResponse.js +1 -1
- package/dist/models/DomainClassificationResponseAsync.d.ts +1 -1
- package/dist/models/DomainClassificationResponseAsync.js +1 -1
- package/dist/models/DomainClassificationResponseGraph.d.ts +1 -1
- package/dist/models/DomainClassificationResponseGraph.js +1 -1
- package/dist/models/DomainFileAssignment.d.ts +1 -1
- package/dist/models/DomainFileAssignment.js +1 -1
- package/dist/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/models/DomainFunctionAssignment.js +1 -1
- package/dist/models/DomainRelationship.d.ts +1 -1
- package/dist/models/DomainRelationship.js +1 -1
- package/dist/models/DomainSummary.d.ts +1 -1
- package/dist/models/DomainSummary.js +1 -1
- package/dist/models/EntryPoint.d.ts +1 -1
- package/dist/models/EntryPoint.js +1 -1
- package/dist/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/models/ErrorDetailsInner.js +1 -1
- package/dist/models/FunctionDescription.d.ts +1 -1
- package/dist/models/FunctionDescription.js +1 -1
- package/dist/models/ImpactAnalysisMetadata.d.ts +61 -0
- package/dist/models/ImpactAnalysisMetadata.js +62 -0
- package/dist/models/ImpactAnalysisResponse.d.ts +46 -0
- package/dist/models/ImpactAnalysisResponse.js +57 -0
- package/dist/models/ImpactAnalysisResponseAsync.d.ts +66 -0
- package/dist/models/ImpactAnalysisResponseAsync.js +67 -0
- package/dist/models/ImpactGlobalMetrics.d.ts +39 -0
- package/dist/models/ImpactGlobalMetrics.js +48 -0
- package/dist/models/ImpactResult.d.ts +60 -0
- package/dist/models/ImpactResult.js +67 -0
- package/dist/models/ImpactTarget.d.ts +59 -0
- package/dist/models/ImpactTarget.js +64 -0
- package/dist/models/JobStatus.d.ts +1 -1
- package/dist/models/JobStatus.js +1 -1
- package/dist/models/ModelError.d.ts +1 -1
- package/dist/models/ModelError.js +1 -1
- package/dist/models/NearestTestedCaller.d.ts +43 -0
- package/dist/models/NearestTestedCaller.js +54 -0
- package/dist/models/SubdomainSummary.d.ts +1 -1
- package/dist/models/SubdomainSummary.js +1 -1
- package/dist/models/SupermodelArtifact.d.ts +1 -1
- package/dist/models/SupermodelArtifact.js +1 -1
- package/dist/models/SupermodelIR.d.ts +1 -1
- package/dist/models/SupermodelIR.js +1 -1
- package/dist/models/SupermodelIRAsync.d.ts +1 -1
- package/dist/models/SupermodelIRAsync.js +1 -1
- package/dist/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/models/SupermodelIRGraph.js +1 -1
- package/dist/models/SupermodelIRStats.d.ts +1 -1
- package/dist/models/SupermodelIRStats.js +1 -1
- package/dist/models/TestCoverageMapMetadata.d.ts +85 -0
- package/dist/models/TestCoverageMapMetadata.js +78 -0
- package/dist/models/TestCoverageMapResponse.d.ts +67 -0
- package/dist/models/TestCoverageMapResponse.js +70 -0
- package/dist/models/TestCoverageMapResponseAsync.d.ts +66 -0
- package/dist/models/TestCoverageMapResponseAsync.js +67 -0
- package/dist/models/TestFileInfo.d.ts +49 -0
- package/dist/models/TestFileInfo.js +58 -0
- package/dist/models/TestedFunction.d.ts +80 -0
- package/dist/models/TestedFunction.js +83 -0
- package/dist/models/TestedSibling.d.ts +43 -0
- package/dist/models/TestedSibling.js +54 -0
- package/dist/models/UnassignedFunction.d.ts +1 -1
- package/dist/models/UnassignedFunction.js +1 -1
- package/dist/models/UntestedFunction.d.ts +103 -0
- package/dist/models/UntestedFunction.js +95 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.5
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TestCoverageMapResponse } from './TestCoverageMapResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TestCoverageMapResponseAsync
|
|
17
|
+
*/
|
|
18
|
+
export interface TestCoverageMapResponseAsync {
|
|
19
|
+
/**
|
|
20
|
+
* Current status of the job.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TestCoverageMapResponseAsync
|
|
23
|
+
*/
|
|
24
|
+
status: TestCoverageMapResponseAsyncStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the job.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TestCoverageMapResponseAsync
|
|
29
|
+
*/
|
|
30
|
+
jobId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Recommended seconds to wait before polling again.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TestCoverageMapResponseAsync
|
|
35
|
+
*/
|
|
36
|
+
retryAfter?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Error message (present when status is failed).
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TestCoverageMapResponseAsync
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {TestCoverageMapResponse}
|
|
46
|
+
* @memberof TestCoverageMapResponseAsync
|
|
47
|
+
*/
|
|
48
|
+
result?: TestCoverageMapResponse;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const TestCoverageMapResponseAsyncStatusEnum: {
|
|
54
|
+
readonly Pending: "pending";
|
|
55
|
+
readonly Processing: "processing";
|
|
56
|
+
readonly Completed: "completed";
|
|
57
|
+
readonly Failed: "failed";
|
|
58
|
+
};
|
|
59
|
+
export type TestCoverageMapResponseAsyncStatusEnum = typeof TestCoverageMapResponseAsyncStatusEnum[keyof typeof TestCoverageMapResponseAsyncStatusEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the TestCoverageMapResponseAsync interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfTestCoverageMapResponseAsync(value: object): value is TestCoverageMapResponseAsync;
|
|
64
|
+
export declare function TestCoverageMapResponseAsyncFromJSON(json: any): TestCoverageMapResponseAsync;
|
|
65
|
+
export declare function TestCoverageMapResponseAsyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestCoverageMapResponseAsync;
|
|
66
|
+
export declare function TestCoverageMapResponseAsyncToJSON(value?: TestCoverageMapResponseAsync | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.5
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TestCoverageMapResponseFromJSON, TestCoverageMapResponseToJSON, } from './TestCoverageMapResponse';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TestCoverageMapResponseAsyncStatusEnum = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Processing: 'processing',
|
|
21
|
+
Completed: 'completed',
|
|
22
|
+
Failed: 'failed'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the TestCoverageMapResponseAsync interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfTestCoverageMapResponseAsync(value) {
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function TestCoverageMapResponseAsyncFromJSON(json) {
|
|
35
|
+
return TestCoverageMapResponseAsyncFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function TestCoverageMapResponseAsyncFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'status': json['status'],
|
|
43
|
+
'jobId': json['jobId'],
|
|
44
|
+
'retryAfter': json['retryAfter'] == null ? undefined : json['retryAfter'],
|
|
45
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
46
|
+
'result': json['result'] == null ? undefined : TestCoverageMapResponseFromJSON(json['result']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function TestCoverageMapResponseAsyncToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'status': value['status'],
|
|
55
|
+
'jobId': value['jobId'],
|
|
56
|
+
'retryAfter': value['retryAfter'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
'result': TestCoverageMapResponseToJSON(value['result']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.5
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Information about a detected test file.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TestFileInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface TestFileInfo {
|
|
18
|
+
/**
|
|
19
|
+
* File path relative to repository root.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TestFileInfo
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of test functions defined in this file.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TestFileInfo
|
|
28
|
+
*/
|
|
29
|
+
testFunctions: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of unique production functions covered by tests in this file.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TestFileInfo
|
|
34
|
+
*/
|
|
35
|
+
productionFunctionsCovered: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of unique production files covered by tests in this file.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TestFileInfo
|
|
40
|
+
*/
|
|
41
|
+
productionFilesCovered: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the TestFileInfo interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfTestFileInfo(value: object): value is TestFileInfo;
|
|
47
|
+
export declare function TestFileInfoFromJSON(json: any): TestFileInfo;
|
|
48
|
+
export declare function TestFileInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestFileInfo;
|
|
49
|
+
export declare function TestFileInfoToJSON(value?: TestFileInfo | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.5
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TestFileInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTestFileInfo(value) {
|
|
18
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('testFunctions' in value) || value['testFunctions'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('productionFunctionsCovered' in value) || value['productionFunctionsCovered'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('productionFilesCovered' in value) || value['productionFilesCovered'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function TestFileInfoFromJSON(json) {
|
|
29
|
+
return TestFileInfoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function TestFileInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'file': json['file'],
|
|
37
|
+
'testFunctions': json['testFunctions'],
|
|
38
|
+
'productionFunctionsCovered': json['productionFunctionsCovered'],
|
|
39
|
+
'productionFilesCovered': json['productionFilesCovered'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function TestFileInfoToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'file': value['file'],
|
|
48
|
+
'testFunctions': value['testFunctions'],
|
|
49
|
+
'productionFunctionsCovered': value['productionFunctionsCovered'],
|
|
50
|
+
'productionFilesCovered': value['productionFilesCovered'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.5
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A production function reachable from at least one test function.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TestedFunction
|
|
16
|
+
*/
|
|
17
|
+
export interface TestedFunction {
|
|
18
|
+
/**
|
|
19
|
+
* File path relative to repository root.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TestedFunction
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the function or method.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TestedFunction
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Line number where the function is declared.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof TestedFunction
|
|
34
|
+
*/
|
|
35
|
+
line: number;
|
|
36
|
+
/**
|
|
37
|
+
* Type of code element.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TestedFunction
|
|
40
|
+
*/
|
|
41
|
+
type: TestedFunctionTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Test files that cover this function (directly or transitively).
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof TestedFunction
|
|
46
|
+
*/
|
|
47
|
+
testFiles: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Number of test functions that directly call this function.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof TestedFunction
|
|
52
|
+
*/
|
|
53
|
+
directTestCallers: number;
|
|
54
|
+
/**
|
|
55
|
+
* Number of test functions that transitively reach this function.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof TestedFunction
|
|
58
|
+
*/
|
|
59
|
+
transitiveTestCallers: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const TestedFunctionTypeEnum: {
|
|
65
|
+
readonly Function: "function";
|
|
66
|
+
readonly Class: "class";
|
|
67
|
+
readonly Method: "method";
|
|
68
|
+
readonly Interface: "interface";
|
|
69
|
+
readonly Type: "type";
|
|
70
|
+
readonly Variable: "variable";
|
|
71
|
+
readonly Constant: "constant";
|
|
72
|
+
};
|
|
73
|
+
export type TestedFunctionTypeEnum = typeof TestedFunctionTypeEnum[keyof typeof TestedFunctionTypeEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the TestedFunction interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfTestedFunction(value: object): value is TestedFunction;
|
|
78
|
+
export declare function TestedFunctionFromJSON(json: any): TestedFunction;
|
|
79
|
+
export declare function TestedFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestedFunction;
|
|
80
|
+
export declare function TestedFunctionToJSON(value?: TestedFunction | null): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.5
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const TestedFunctionTypeEnum = {
|
|
18
|
+
Function: 'function',
|
|
19
|
+
Class: 'class',
|
|
20
|
+
Method: 'method',
|
|
21
|
+
Interface: 'interface',
|
|
22
|
+
Type: 'type',
|
|
23
|
+
Variable: 'variable',
|
|
24
|
+
Constant: 'constant'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TestedFunction interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfTestedFunction(value) {
|
|
30
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('testFiles' in value) || value['testFiles'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('directTestCallers' in value) || value['directTestCallers'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('transitiveTestCallers' in value) || value['transitiveTestCallers'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function TestedFunctionFromJSON(json) {
|
|
47
|
+
return TestedFunctionFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function TestedFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'file': json['file'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'line': json['line'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
'testFiles': json['testFiles'],
|
|
59
|
+
'directTestCallers': json['directTestCallers'],
|
|
60
|
+
'transitiveTestCallers': json['transitiveTestCallers'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function TestedFunctionToJSON(value) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'file': value['file'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'line': value['line'],
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'testFiles': value['testFiles'],
|
|
73
|
+
'directTestCallers': value['directTestCallers'],
|
|
74
|
+
'transitiveTestCallers': value['transitiveTestCallers'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.5
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A sibling function in the same file that has test coverage.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TestedSibling
|
|
16
|
+
*/
|
|
17
|
+
export interface TestedSibling {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the tested sibling function.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TestedSibling
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Line number where the sibling function is declared.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof TestedSibling
|
|
28
|
+
*/
|
|
29
|
+
line: number;
|
|
30
|
+
/**
|
|
31
|
+
* Test files that cover this sibling function.
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof TestedSibling
|
|
34
|
+
*/
|
|
35
|
+
testFiles: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TestedSibling interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfTestedSibling(value: object): value is TestedSibling;
|
|
41
|
+
export declare function TestedSiblingFromJSON(json: any): TestedSibling;
|
|
42
|
+
export declare function TestedSiblingFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestedSibling;
|
|
43
|
+
export declare function TestedSiblingToJSON(value?: TestedSibling | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.5
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TestedSibling interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTestedSibling(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('testFiles' in value) || value['testFiles'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function TestedSiblingFromJSON(json) {
|
|
27
|
+
return TestedSiblingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function TestedSiblingFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'line': json['line'],
|
|
36
|
+
'testFiles': json['testFiles'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function TestedSiblingToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'line': value['line'],
|
|
46
|
+
'testFiles': value['testFiles'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supermodel
|
|
3
|
+
* Code Graphing & Analysis API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.9.5
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TestedSibling } from './TestedSibling';
|
|
13
|
+
import type { NearestTestedCaller } from './NearestTestedCaller';
|
|
14
|
+
/**
|
|
15
|
+
* A production function with no test coverage.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UntestedFunction
|
|
18
|
+
*/
|
|
19
|
+
export interface UntestedFunction {
|
|
20
|
+
/**
|
|
21
|
+
* File path relative to repository root.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UntestedFunction
|
|
24
|
+
*/
|
|
25
|
+
file: string;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the function or method.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UntestedFunction
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Line number where the function is declared.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof UntestedFunction
|
|
36
|
+
*/
|
|
37
|
+
line: number;
|
|
38
|
+
/**
|
|
39
|
+
* Type of code element.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UntestedFunction
|
|
42
|
+
*/
|
|
43
|
+
type: UntestedFunctionTypeEnum;
|
|
44
|
+
/**
|
|
45
|
+
* Confidence level of the untested classification.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UntestedFunction
|
|
48
|
+
*/
|
|
49
|
+
confidence: UntestedFunctionConfidenceEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Explanation of why this function is classified as untested.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UntestedFunction
|
|
54
|
+
*/
|
|
55
|
+
reason: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {NearestTestedCaller}
|
|
59
|
+
* @memberof UntestedFunction
|
|
60
|
+
*/
|
|
61
|
+
nearestTestedCaller?: NearestTestedCaller;
|
|
62
|
+
/**
|
|
63
|
+
* 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.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof UntestedFunction
|
|
66
|
+
*/
|
|
67
|
+
suggestedTestFile?: string;
|
|
68
|
+
/**
|
|
69
|
+
* 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.
|
|
70
|
+
* @type {Array<TestedSibling>}
|
|
71
|
+
* @memberof UntestedFunction
|
|
72
|
+
*/
|
|
73
|
+
testedSiblings?: Array<TestedSibling>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const UntestedFunctionTypeEnum: {
|
|
79
|
+
readonly Function: "function";
|
|
80
|
+
readonly Class: "class";
|
|
81
|
+
readonly Method: "method";
|
|
82
|
+
readonly Interface: "interface";
|
|
83
|
+
readonly Type: "type";
|
|
84
|
+
readonly Variable: "variable";
|
|
85
|
+
readonly Constant: "constant";
|
|
86
|
+
};
|
|
87
|
+
export type UntestedFunctionTypeEnum = typeof UntestedFunctionTypeEnum[keyof typeof UntestedFunctionTypeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const UntestedFunctionConfidenceEnum: {
|
|
92
|
+
readonly High: "high";
|
|
93
|
+
readonly Medium: "medium";
|
|
94
|
+
readonly Low: "low";
|
|
95
|
+
};
|
|
96
|
+
export type UntestedFunctionConfidenceEnum = typeof UntestedFunctionConfidenceEnum[keyof typeof UntestedFunctionConfidenceEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the UntestedFunction interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfUntestedFunction(value: object): value is UntestedFunction;
|
|
101
|
+
export declare function UntestedFunctionFromJSON(json: any): UntestedFunction;
|
|
102
|
+
export declare function UntestedFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UntestedFunction;
|
|
103
|
+
export declare function UntestedFunctionToJSON(value?: UntestedFunction | null): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Supermodel
|
|
5
|
+
* Code Graphing & Analysis API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.9.5
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TestedSiblingFromJSON, TestedSiblingToJSON, } from './TestedSibling';
|
|
15
|
+
import { NearestTestedCallerFromJSON, NearestTestedCallerToJSON, } from './NearestTestedCaller';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const UntestedFunctionTypeEnum = {
|
|
20
|
+
Function: 'function',
|
|
21
|
+
Class: 'class',
|
|
22
|
+
Method: 'method',
|
|
23
|
+
Interface: 'interface',
|
|
24
|
+
Type: 'type',
|
|
25
|
+
Variable: 'variable',
|
|
26
|
+
Constant: 'constant'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const UntestedFunctionConfidenceEnum = {
|
|
32
|
+
High: 'high',
|
|
33
|
+
Medium: 'medium',
|
|
34
|
+
Low: 'low'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UntestedFunction interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUntestedFunction(value) {
|
|
40
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('line' in value) || value['line'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
export function UntestedFunctionFromJSON(json) {
|
|
55
|
+
return UntestedFunctionFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function UntestedFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'file': json['file'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'line': json['line'],
|
|
65
|
+
'type': json['type'],
|
|
66
|
+
'confidence': json['confidence'],
|
|
67
|
+
'reason': json['reason'],
|
|
68
|
+
'nearestTestedCaller': json['nearestTestedCaller'] == null ? undefined : NearestTestedCallerFromJSON(json['nearestTestedCaller']),
|
|
69
|
+
'suggestedTestFile': json['suggestedTestFile'] == null ? undefined : json['suggestedTestFile'],
|
|
70
|
+
'testedSiblings': json['testedSiblings'] == null ? undefined : (json['testedSiblings'].map(TestedSiblingFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export function UntestedFunctionToJSON(value) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'file': value['file'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'line': value['line'],
|
|
81
|
+
'type': value['type'],
|
|
82
|
+
'confidence': value['confidence'],
|
|
83
|
+
'reason': value['reason'],
|
|
84
|
+
'nearestTestedCaller': NearestTestedCallerToJSON(value['nearestTestedCaller']),
|
|
85
|
+
'suggestedTestFile': value['suggestedTestFile'],
|
|
86
|
+
'testedSiblings': value['testedSiblings'] == null ? undefined : (value['testedSiblings'].map(TestedSiblingToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|