MCPcopy
hub / github.com/moncho/dry / TestModel_WorkspacePinnedStateAppearsInContextHeader

Function TestModel_WorkspacePinnedStateAppearsInContextHeader

app/model_test.go:545–554  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

543}
544
545func TestModel_WorkspacePinnedStateAppearsInContextHeader(t *testing.T) {
546 m := newWorkspaceTestModel()
547 ctx := workspaceContextFromContainer(m.daemon.Containers(nil, 0)[0])
548 m.pinnedContext = &ctx
549
550 body := m.renderWorkspaceBody()
551 if !strings.Contains(body, "Context · pinned") {
552 t.Fatalf("expected pinned context header, got %q", body)
553 }
554}
555
556func TestModel_WorkspaceContextPaneScrollsWhenFocused(t *testing.T) {
557 m := newWorkspaceTestModel()

Callers

nothing calls this directly

Calls 5

newWorkspaceTestModelFunction · 0.85
renderWorkspaceBodyMethod · 0.80
ContainsMethod · 0.80
ContainersMethod · 0.65

Tested by

no test coverage detected