mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 16:12:14 +08:00
Chore: Fix SQL related Go variable naming (#28887)
* Chore: Fix variable naming Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@ -68,14 +68,14 @@ var sqlStoreTestCases = []sqlStoreTest{
|
||||
},
|
||||
}
|
||||
|
||||
func TestSqlConnectionString(t *testing.T) {
|
||||
func TestSQLConnectionString(t *testing.T) {
|
||||
Convey("Testing SQL Connection Strings", t, func() {
|
||||
t.Helper()
|
||||
|
||||
for _, testCase := range sqlStoreTestCases {
|
||||
Convey(testCase.name, func() {
|
||||
sqlstore := &SqlStore{}
|
||||
sqlstore.Cfg = makeSqlStoreTestConfig(testCase.dbType, testCase.dbHost)
|
||||
sqlstore := &SQLStore{}
|
||||
sqlstore.Cfg = makeSQLStoreTestConfig(testCase.dbType, testCase.dbHost)
|
||||
sqlstore.readConfig()
|
||||
|
||||
connStr, err := sqlstore.buildConnectionString()
|
||||
@ -89,7 +89,7 @@ func TestSqlConnectionString(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func makeSqlStoreTestConfig(dbType string, host string) *setting.Cfg {
|
||||
func makeSQLStoreTestConfig(dbType string, host string) *setting.Cfg {
|
||||
cfg := setting.NewCfg()
|
||||
|
||||
sec, err := cfg.Raw.NewSection("database")
|
||||
|
Reference in New Issue
Block a user