Skip to content

src/widgets: is not included in tests, bitrotted #350

Description

@knightpp

What is the future of that namespace?

You can apply this and run zig build test

diff --git a/src/widgets.zig b/src/widgets.zig
index 3a39846e1e..4d42722655 100644
--- a/src/widgets.zig
+++ b/src/widgets.zig
@@ -10,3 +10,17 @@
 pub const Terminal = @import("widgets/terminal/Terminal.zig");
 pub const TextInput = @import("widgets/TextInput.zig");
 pub const View = @import("widgets/View.zig");
+
+test {
+    const std = @import("std");
+    std.testing.refAllDecls(alignment);
+    std.testing.refAllDecls(Scrollbar);
+    std.testing.refAllDecls(Table);
+    std.testing.refAllDecls(ScrollView);
+    std.testing.refAllDecls(LineNumbers);
+    std.testing.refAllDecls(TextView);
+    std.testing.refAllDecls(CodeView);
+    std.testing.refAllDecls(Terminal);
+    std.testing.refAllDecls(TextInput);
+    std.testing.refAllDecls(View);
+}

PS
I'd like to add 0.15 Writer interface for TextView.Buffer, but no promises.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions