output

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package goparse contains logic for parsing Go files. Specifically it parses source and test files into domain models for generating tests.

This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFileExist

func IsFileExist(path string) bool

Types

type Options

type Options struct {
	PrintInputs    bool
	Subtests       bool
	Parallel       bool
	Named          bool
	Template       string
	TemplateDir    string
	Mocks          map[string]map[string]int
	Builders       map[string][]string
	MiddleBuilders []string
	GlobalInit     []string
	MiddleCodeInit []string
	TestCaseNum    int
	TemplateParams map[string]interface{}
	TemplateData   [][]byte
	Uid            string
	MockStatements map[string][]string
	TestMode       string
	FilePath       string

	UseMockType int
	Ctx         context.Context // Context of the smart unit
	// contains filtered or unexported fields
}

func (*Options) Process

func (o *Options) Process(head *models.Header, funcs []*models.Function) ([]byte, error)

Jump to

Keyboard shortcuts

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