SDK · crate

kinogaki-studio-ui-api-testing

SDK

The UI layer's test support (a dev-dependency only): headless fakes of the host's UI for plugin unit tests: RecordingUi and RecordingPainter record what a plugin asks to show and draw, and play back scripted user actions, with no window and no GPU ...

Repository
SDK (kinogaki/studio-sdk)
Folder
sdk/crates/ui-api-testing
Source
8 files, 2,639 lines
Tests
0 files, 0 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

The UI layer's test support (a dev-dependency only): headless fakes of the host's UI for plugin unit tests: RecordingUi and RecordingPainter record what a plugin asks to show and draw, and play back scripted user actions, with no window and no GPU; FakeHost stands in for Studio's host interface, with its objects' networks FakeNetworks, and Hosting calls a registered package's parts on it as the host does; view and camera are the views a view call is about.

Depends on

CrateRepositoryAsWhat it is
kinogaki-studio-apiSDKnormalKinogaki Studio's headless plugin API.
kinogaki-studio-api-testingSDKnormalThe SDK's test support (a dev-dependency only): assert_refused for admission tests, read_hostile for a format's tests of hostile files, format for its scratch folders and round trips, workers as a host installs them, with wgpu an ...
kinogaki-studio-ui-apiSDKnormalKinogaki Studio's UI layer for plugins.
kinogaki-viewport-apiSDKnormalKinogaki's viewport packet contract: what a data type hands Studio's viewport to draw, with no GPU or UI API.

Third-party

None.

Used by

CrateRepositoryAsWhat it is
example-box-nodeSDKtestsA Kinogaki Studio plugin that adds a Box node.
example-pin-boardSDKtestsA Kinogaki Studio plugin that brings a context with its UI.
kinogaki-studioCore and the apptestsKinogaki Studio: the editor in a window, after the plugins load.
kinogaki-testkitCore and the appnormalKinogaki Studio's core testkit: toy packages written against the SDK alone, so core is tested with no real plugin.

Modules

Public types and traits

At the crate root

Structs FakeHostFakeNetworkFakeObjectHostingRecordingPainterRecordingUi

Enums CallHostCall

By module: 8 public types and traits in 5 modules

calls HostCall

host FakeHostFakeObjectHosting

network FakeNetwork

painter RecordingPainter

ui CallRecordingUi