MCPcopy Create free account
hub / github.com/rilldata/rill / TestJSONSchemaForResourceType

Function TestJSONSchemaForResourceType

runtime/parser/schema_test.go:17–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestJSONSchemaForResourceType(t *testing.T) {
18 tests := []struct {
19 name string
20 resourceType ResourceKind
21 wantTitle string
22 wantAllOf bool
23 wantErr bool
24 }{
25 {
26 name: "model schema",
27 resourceType: ResourceKindModel,
28 wantTitle: "Models YAML",
29 wantAllOf: true,
30 },
31 {
32 name: "metrics view schema",
33 resourceType: ResourceKindMetricsView,
34 wantTitle: "Metrics View YAML",
35 wantAllOf: true,
36 },
37 {
38 name: "connector schema",
39 resourceType: ResourceKindConnector,
40 wantTitle: "Connector YAML",
41 wantAllOf: true,
42 },
43 {
44 name: "explore schema",
45 resourceType: ResourceKindExplore,
46 wantTitle: "Explore Dashboard YAML",
47 wantAllOf: true,
48 },
49 {
50 name: "canvas schema",
51 resourceType: ResourceKindCanvas,
52 wantTitle: "Canvas Dashboard YAML",
53 wantAllOf: true,
54 },
55 {
56 name: "alert schema",
57 resourceType: ResourceKindAlert,
58 wantTitle: "Alert YAML",
59 wantAllOf: true,
60 },
61 {
62 name: "theme schema",
63 resourceType: ResourceKindTheme,
64 wantTitle: "Theme YAML",
65 wantAllOf: true,
66 },
67 {
68 name: "api schema",
69 resourceType: ResourceKindAPI,
70 wantTitle: "API YAML",
71 wantAllOf: true,
72 },
73 {
74 name: "component schema",

Callers

nothing calls this directly

Calls 3

RunMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected