databricks / cli

Databricks CLI
Other
132 stars 50 forks source link

Modify SetLocation test utility to take full locations as argument #1788

Closed shreyas-goenka closed 4 days ago

shreyas-goenka commented 6 days ago

I plan to use this in https://github.com/databricks/cli/pull/1780, to set the line and column numbers as well for the locations.

gopatch file used:

@@
var x expression
var y expression
var z expression
@@
-bundletest.SetLocation(x, y, z)
+bundletest.SetLocation(x, y, []dyn.Location{{File: z}})