@finos/legend-studio
Version:
54 lines • 2.43 kB
TypeScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ServiceTestSuite, ServiceTest } from '@finos/legend-graph';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import type { EditorStore } from '../../../../EditorStore.js';
import type { ServiceEditorState } from '../ServiceEditorState.js';
import { ServiceTestDataState } from './ServiceTestDataState.js';
import { ServiceTestState } from './ServiceTestEditorState.js';
export declare class ServiceTestSuiteState {
readonly editorStore: EditorStore;
readonly testableState: ServiceTestableState;
suite: ServiceTestSuite;
testDataState: ServiceTestDataState;
selectedTestState: ServiceTestState | undefined;
testStates: ServiceTestState[];
testToRename: ServiceTest | undefined;
isRunningTest: ActionState;
constructor(suite: ServiceTestSuite, testableState: ServiceTestableState);
setTestToRename(test: ServiceTest | undefined): void;
setSelectedTestState(val: ServiceTestState | undefined): void;
addServiceTest(): void;
deleteTest(testState: ServiceTestState): void;
runSuite(): GeneratorFn<void>;
runFailingTests(): GeneratorFn<void>;
get testCount(): number;
get testPassed(): number;
get testFailed(): number;
}
export declare class ServiceTestableState {
readonly editorStore: EditorStore;
readonly serviceEditorState: ServiceEditorState;
selectedSuiteState: ServiceTestSuiteState | undefined;
suiteToRename: ServiceTestSuite | undefined;
constructor(editorStore: EditorStore, serviceEditorState: ServiceEditorState);
setSuiteToRename(testSuite: ServiceTestSuite | undefined): void;
deleteSuite(testSuite: ServiceTestSuite): void;
changeSuite(suite: ServiceTestSuite): void;
initSuites(): void;
addTestSuite(): void;
}
//# sourceMappingURL=ServiceTestableState.d.ts.map