mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
golint fix (#13613)
This commit is contained in:
committed by
Ben Schumacher
parent
2186af4d13
commit
3865bc501e
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
// testlib exposes helper methods for running unit tests against a containerized test store.
|
||||
// Package testlib exposes helper methods for running unit tests against a containerized test store.
|
||||
package testlib
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
type MainHelper struct {
|
||||
Settings *model.SqlSettings
|
||||
Store store.Store
|
||||
SqlSupplier *sqlstore.SqlSupplier
|
||||
SQLSupplier *sqlstore.SqlSupplier
|
||||
ClusterInterface *FakeClusterInterface
|
||||
|
||||
status int
|
||||
@@ -101,9 +101,9 @@ func (h *MainHelper) setupStore() {
|
||||
h.Settings = storetest.MakeSqlSettings(driverName)
|
||||
|
||||
h.ClusterInterface = &FakeClusterInterface{}
|
||||
h.SqlSupplier = sqlstore.NewSqlSupplier(*h.Settings, nil)
|
||||
h.SQLSupplier = sqlstore.NewSqlSupplier(*h.Settings, nil)
|
||||
h.Store = &TestStore{
|
||||
h.SqlSupplier,
|
||||
h.SQLSupplier,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ func (h *MainHelper) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (h *MainHelper) GetSqlSettings() *model.SqlSettings {
|
||||
func (h *MainHelper) GetSQLSettings() *model.SqlSettings {
|
||||
if h.Settings == nil {
|
||||
panic("MainHelper not initialized with database access.")
|
||||
}
|
||||
@@ -148,12 +148,12 @@ func (h *MainHelper) GetStore() store.Store {
|
||||
return h.Store
|
||||
}
|
||||
|
||||
func (h *MainHelper) GetSqlSupplier() *sqlstore.SqlSupplier {
|
||||
if h.SqlSupplier == nil {
|
||||
func (h *MainHelper) GetSQLSupplier() *sqlstore.SqlSupplier {
|
||||
if h.SQLSupplier == nil {
|
||||
panic("MainHelper not initialized with sql supplier.")
|
||||
}
|
||||
|
||||
return h.SqlSupplier
|
||||
return h.SQLSupplier
|
||||
}
|
||||
|
||||
func (h *MainHelper) GetClusterInterface() *FakeClusterInterface {
|
||||
|
||||
Reference in New Issue
Block a user