Skip to content

Commit 3758187

Browse files
fixed copyright headers
1 parent 163723b commit 3758187

93 files changed

Lines changed: 689 additions & 159 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/views/component-viewer/component-viewer-target-access.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17+
// generated with AI
18+
19+
/**
20+
* Unit test for ComponentViewerTargetAccess.
21+
*/
22+
1723
import * as vscode from 'vscode';
1824
import { ComponentViewerTargetAccess } from './component-viewer-target-access';
1925
import { debugSessionFactory } from '../../__test__/vscode.factory';

src/views/component-viewer/model/scvd-base.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
15+
*/
16+
17+
/**
1618
* Minimal core for SCVD tree nodes: parent/child wiring and basic metadata.
1719
* Model-specific behaviour lives in ScvdNode.
1820
*/
1921

20-
2122
export type Json = Record<string, unknown>;
2223

2324
// Constructor type used for runtime instanceof checks; kept loose to cover differing ctor shapes.

src/views/component-viewer/test/integration/component-viewer-logger.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
16-
* Integration test for ComponentViewerLogger.
1715
*/
16+
1817
// generated with AI
1918

19+
/**
20+
* Integration test for ComponentViewerLogger.
21+
*/
2022

2123
jest.mock('vscode', () => {
2224
const mockChannel = { appendLine: jest.fn(), dispose: jest.fn() };

src/views/component-viewer/test/integration/helpers/full-data-host.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
15+
*/
16+
17+
// generated with AI
18+
19+
/**
1620
* Test-only helper for evaluator host typing.
1721
* Integration test for FullDataHost.
1822
*/
19-
// generated with AI
23+
2024
import type { DataAccessHost, ModelHost } from '../../../parser-evaluator/model-host';
2125
import type { IntrinsicProvider } from '../../../parser-evaluator/intrinsics';
2226

src/views/component-viewer/test/integration/helpers/statement-engine-helpers.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
15+
*/
16+
17+
// generated with AI
18+
19+
/**
1620
* Integration test for StatementEngineHelpers.
1721
*/
1822

src/views/component-viewer/test/integration/memory-host/memory-host.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
16-
* Integration test for MemoryHost.
1715
*/
16+
1817
// generated with AI
1918

19+
/**
20+
* Integration test for MemoryHost.
21+
*/
22+
2023
import { MemoryHost } from '../../../data-host/memory-host';
2124
import { RefContainer } from '../../../parser-evaluator/model-host';
2225
import { ScvdNode } from '../../../model/scvd-node';

src/views/component-viewer/test/integration/parser-evaluator/eval-interface/scvd-eval-interface.formatPrintf.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
15+
*/
16+
17+
// generated with AI
18+
19+
/**
1620
* Unit tests for ScvdEvalInterface.formatPrintf based on the CMSIS-View
1721
* value_output specification: https://arm-software.github.io/CMSIS-View/main/value_output.html
1822
* Integration test for ScvdEvalInterface.formatPrintf.
1923
*/
20-
// generated with AI
2124

2225
import { ScvdEvalInterface } from '../../../../scvd-eval-interface';
2326
import { ScvdFormatSpecifier, FormatKind } from '../../../../model/scvd-format-specifier';

src/views/component-viewer/test/integration/parser-evaluator/eval-interface/scvd-eval-interface.scalarInfo.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
15+
*/
16+
17+
// generated with AI
18+
19+
/**
1620
* Tests for scalar info derivation (padding/bit-width) in ScvdEvalInterface.
1721
* Integration test for ScvdEvalInterface.scalarInfo.
1822
*/
19-
// generated with AI
2023

2124
import { ScvdEvalInterface } from '../../../../scvd-eval-interface';
2225
import { FormatTypeInfo } from '../../../../model/scvd-format-specifier';

src/views/component-viewer/test/integration/parser-evaluator/eval-interface/scvd-eval-interface.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
16-
* Integration test for ScvdEvalInterface.
1715
*/
16+
1817
// generated with AI
1918

19+
/**
20+
* Integration test for ScvdEvalInterface.
21+
*/
22+
2023
import { ScvdEvalInterface } from '../../../../scvd-eval-interface';
2124
import { MemoryHost } from '../../../../data-host/memory-host';
2225
import { RegisterHost } from '../../../../data-host/register-host';

src/views/component-viewer/test/integration/parser-evaluator/evaluator/evaluator-basic.test.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
15-
*
16-
* Integration test for EvaluatorBasic.
1715
*/
16+
1817
// generated with AI
1918

19+
/**
20+
* Integration test for EvaluatorBasic.
21+
*/
22+
2023
import { EvalContext, evaluateParseResult } from '../../../../parser-evaluator/evaluator';
2124
import type { EvalValue, RefContainer } from '../../../../parser-evaluator/model-host';
2225
import type { FullDataHost } from '../../helpers/full-data-host';
@@ -31,9 +34,6 @@ type SymbolDef = {
3134
};
3235

3336
// Loaded from static test fixture (path is fixed at build time).
34-
// eslint-disable-next-line @typescript-eslint/no-require-imports
35-
const cases: EvaluatorCase[] = require('../../testfiles/evaluator-basic.json');
36-
3737
type EvaluatorCase = {
3838
expr: string;
3939
expected: number | string | undefined;
@@ -42,6 +42,15 @@ type EvaluatorCase = {
4242
expectedSymbol?: number | string | undefined;
4343
};
4444

45+
type EvaluatorCasesFile = {
46+
_meta: { format: string; copyright: string; generatedWith?: string };
47+
cases: EvaluatorCase[];
48+
};
49+
50+
// eslint-disable-next-line @typescript-eslint/no-require-imports
51+
const fixture: EvaluatorCasesFile | EvaluatorCase[] = require('../../testfiles/evaluator-basic.json');
52+
const cases: EvaluatorCase[] = Array.isArray(fixture) ? fixture : fixture.cases;
53+
4554
class MockRef extends ScvdNode {
4655
value: EvalValue | undefined;
4756
members: Map<string, MockRef> = new Map();

0 commit comments

Comments
 (0)