github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/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  
     9  	"github.com/mattermost/mattermost-server/v5/model"
    10  )
    11  
    12  // MarshalConfig exposes the internal marshalConfig to tests only.
    13  func MarshalConfig(cfg *model.Config) ([]byte, error) {
    14  	return marshalConfig(cfg)
    15  }
    16  
    17  // InitializeConfigurationsTable exposes the internal initializeConfigurationsTable to test only.
    18  func InitializeConfigurationsTable(db *sqlx.DB) error {
    19  	return initializeConfigurationsTable(db)
    20  }