handler.go ×4

Frontier kind: Code frontier

unlabeled · c_7737e5faf189

2 tests · 3072 LOC · 125 files · introduces 0 tests · 18 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges18 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
592 ranges3072 lines · 125 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

3 files ranked by introduced lines: 18 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/cassandra/handler.go 8 introduced LOC · 4 ranges

Open complete file

46 // updateSchema executes the updateSchemaTask
47 // using the given command line args as input
48 > func updateSchema(cli *cli.Context, logger log.Logger) error { handler.go
49 > config, err := newCQLClientConfig(cli)
50 > if err != nil {
51 logger.Error("Unable to read config.", tag.Error(schema.NewConfigError(err.Error())))
52 return err
53 }
54 > client, err := newCQLClient(config, logger) handler.go
55 > if err != nil {
56 logger.Error("Unable to establish CQL session.", tag.Error(err))
57 return err
58 }
59 > defer client.Close() handler.go
60 > if err := schema.Update(cli, client, logger); err != nil {
61 logger.Error("Unable to update CQL schema.", tag.Error(err))
62 return err
63 }
64 > return nil handler.go
65 }
66
go.temporal.io/server/tools/cassandra/update_task_tests.go 7 introduced LOC · 3 ranges

Open complete file

11 }
12
13 > func (s *UpdateSchemaTestSuite) SetupSuite() { update_task_tests.go
14 > client, err := newTestCQLClient(systemKeyspace)
15 > if err != nil {
16 s.Logger.Fatal("Error creating CQLClient", tag.Error(err))
17 }
18 // No ConnectParams needed: Cassandra CLI defaults work without explicit flags.
19 > s.SetupSuiteBase(client, "", test.ConnectParams{}) update_task_tests.go
20 }
21
22 > func (s *UpdateSchemaTestSuite) TearDownSuite() { update_task_tests.go
23 > s.TearDownSuiteBase()
24 > }
25
26 func (s *UpdateSchemaTestSuite) TestUpdateSchema() {
go.temporal.io/server/tools/cassandra/main.go 3 introduced LOC · 1 range

Open complete file

192 },
193 },
194 > Action: func(c *cli.Context) { main.go
195 > cliHandler(c, updateSchema, logger)
196 > },
197 },
198 {