app

package
v1.0.0-beta.225 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPostgresHost = "127.0.0.1"
)
View Source
const (
	PostgresURLTemplate = "postgres://postgres:postgres@%s:5432/postgres?sslmode=disable"
)

Variables

View Source
var TestType = app.AppTypeStripe

Functions

func InitBillingService

func InitBillingService(t *testing.T, ctx context.Context, in InitBillingServiceInput) (billing.Service, error)

Types

type AppHandlerTestSuite

type AppHandlerTestSuite struct {
	Env TestEnv
	// contains filtered or unexported fields
}

func (*AppHandlerTestSuite) TestGetMarketplaceListing

func (s *AppHandlerTestSuite) TestGetMarketplaceListing(ctx context.Context, t *testing.T)

TestGet tests the getting of a app by ID

func (*AppHandlerTestSuite) TestListMarketplaceListings

func (s *AppHandlerTestSuite) TestListMarketplaceListings(ctx context.Context, t *testing.T)

TestList tests the listing of apps

type InitBillingServiceInput

type InitBillingServiceInput struct {
	DBClient        *db.Client
	CustomerService customer.Service
	AppService      app.Service
}

func (InitBillingServiceInput) Validate

func (i InitBillingServiceInput) Validate() error

type TestEnv

type TestEnv interface {
	Adapter() app.Adapter
	App() app.Service

	Close() error
}

func NewTestEnv

func NewTestEnv(t *testing.T, ctx context.Context) (TestEnv, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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