github.com/adacta-ru/mattermost-server/v6@v6.0.0/config/export_test.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package config 5 6 import ( 7 "github.com/jmoiron/sqlx" 8 "github.com/adacta-ru/mattermost-server/v6/model" 9 ) 10 11 // MarshalConfig exposes the internal marshalConfig to tests only. 12 func MarshalConfig(cfg *model.Config) ([]byte, error) { 13 return marshalConfig(cfg) 14 } 15 16 // InitializeConfigurationsTable exposes the internal initializeConfigurationsTable to test only. 17 func InitializeConfigurationsTable(db *sqlx.DB) error { 18 return initializeConfigurationsTable(db) 19 }