64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
[2026-05-14T19:46:07.872Z] PROMPT
|
|
============================================================
|
|
Analyze test coverage and identify gaps:
|
|
- Find untested functions and classes
|
|
- Identify edge cases not covered
|
|
- Suggest new test scenarios
|
|
- Check for missing error handling tests
|
|
- Identify integration test gaps
|
|
|
|
For each gap, provide a test skeleton.
|
|
|
|
## Codebase Context
|
|
|
|
--- src/canvas/types.ts ---
|
|
export type CardId = string;
|
|
|
|
export type CardKind = "note" | "terminal" | "app" | "thumbnail";
|
|
|
|
export interface BaseCard {
|
|
id: CardId;
|
|
kind: CardKind;
|
|
x: number;
|
|
y: number;
|
|
width: number;
|
|
height: number;
|
|
z: number;
|
|
}
|
|
|
|
export interface NoteCard extends BaseCard {
|
|
kind: "note";
|
|
text: string;
|
|
}
|
|
|
|
export interface TerminalCard extends BaseCard {
|
|
kind: "terminal";
|
|
ptyId: string;
|
|
}
|
|
|
|
export interface AppCard extends BaseCard {
|
|
kind: "app";
|
|
xWindowId: number;
|
|
command: string;
|
|
title?: string;
|
|
}
|
|
|
|
export interface ThumbnailCard extends BaseCard {
|
|
kind: "thumbnail";
|
|
refCardId: CardId;
|
|
label: string;
|
|
}
|
|
|
|
export type Card = NoteCard | TerminalCard | AppCard | ThumbnailCard;
|
|
|
|
export interface Viewport {
|
|
x: number;
|
|
y: number;
|
|
scale: number;
|
|
}
|
|
|
|
|
|
## Instructions
|
|
|
|
Analyze the above codebase context and provide your response following the format specified in the task.
|