update_task_tests.go ×4

Frontier kind: Code frontier

unlabeled · c_67154b593868

9 tests · 2949 LOC · 124 files · introduces 0 tests · 37 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges37 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
548 ranges2949 lines · 124 files · Browse complete extent
All tests (intent)
9 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.

4 files ranked by introduced lines: 37 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/sql/clitest/update_task_tests.go 24 introduced LOC · 4 ranges

Open complete file

32 visibilitySchemaVersionDir string,
33 visibilityVersion string,
34 > ) *UpdateSchemaTestSuite { update_task_tests.go
35 > return &UpdateSchemaTestSuite{
36 > host: host,
37 > port: port,
38 > pluginName: pluginName,
39 > sqlQuery: sqlQuery,
40 > executionSchemaVersionDir: executionSchemaVersionDir,
41 > executionVersion: executionVersion,
42 > visibilitySchemaVersionDir: visibilitySchemaVersionDir,
43 > visibilityVersion: visibilityVersion,
44 > }
45 > }
46
47 // SetupSuite setups test suite
48 > func (s *UpdateSchemaTestSuite) SetupSuite() { update_task_tests.go
49 > conn, err := newTestConn("", s.host, s.port, s.pluginName)
50 > if err != nil {
51 s.Logger.Fatal("Error creating CQLClient", tag.Error(err))
52 }
53 > s.SetupSuiteBase(conn, s.pluginName, test.ConnectParams{ update_task_tests.go
54 > Host: s.host,
55 > Port: s.port,
56 > User: testUser,
57 > Password: testPassword,
58 > })
59 }
60
61 // TearDownSuite tear down test suite
62 > func (s *UpdateSchemaTestSuite) TearDownSuite() { update_task_tests.go
63 > s.TearDownSuiteBase()
64 > }
65
66 // TestUpdateSchema test
go.temporal.io/server/tools/sql/handler.go 8 introduced LOC · 4 ranges

Open complete file

38 // updateSchema executes the updateSchemaTask
39 // using the given command line args as input
40 > func updateSchema(cli *cli.Context, logger log.Logger) error { handler.go
41 > cfg, err := parseConnectConfig(cli)
42 > if err != nil {
43 logger.Error("Unable to read config.", tag.Error(schema.NewConfigError(err.Error())))
44 return err
45 }
46 > conn, err := NewConnection(cfg, logger) handler.go
47 > if err != nil {
48 logger.Error("Unable to connect to SQL database.", tag.Error(err))
49 return err
50 }
51 > defer conn.Close() handler.go
52 > if err := schema.Update(cli, conn, logger); err != nil {
53 logger.Error("Unable to update SQL schema.", tag.Error(err))
54 return err
55 }
56 > return nil handler.go
57 }
58
go.temporal.io/server/tools/sql/main.go 3 introduced LOC · 1 range

Open complete file

169 },
170 },
171 > Action: func(c *cli.Context) { main.go
172 > cliHandler(c, updateSchema, logger)
173 > },
174 },
175 {
go.temporal.io/server/tools/common/schema/test/updatetest.go 2 introduced LOC · 1 range

Open complete file

156 command := []string{"./tool"}
157 if tb.pluginName != "" {
158 > command = append(command, "-pl", tb.pluginName) updatetest.go
159 > }
160 return append(command, tb.conn.CLIFlags()...)
161 }