main_test

package
v6.0.0-...-cfe9101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDBAPI

func TestDBAPI(t *testing.T)

TestDBAPI is a test function which actually runs a plugin. The objective is to run the storetest suite from inside a plugin.

The test runner compiles the test code to a binary, and runs it as a normal binary. But under the hood, a test runs.

Types

type MyPlugin

type MyPlugin struct {
	plugin.MattermostPlugin
	// contains filtered or unexported fields
}

func (*MyPlugin) MessageWillBePosted

func (p *MyPlugin) MessageWillBePosted(_ *plugin.Context, _ *model.Post) (*model.Post, string)

func (*MyPlugin) OnConfigurationChange

func (p *MyPlugin) OnConfigurationChange() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL