parser

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputToCode added in v0.6.0

func InputToCode(paramType, input string) string

InputToCode eg: input = [10,0,0],paramType = *TreeNode, return = &TreeNode{10, &TreeNode{0,nil,nil}, &TreeNode{0,nil,nil}}

Types

type Code

type Code []byte

func (*Code) Append

func (_this *Code) Append(b ...byte)

func (*Code) AppendBytes

func (_this *Code) AppendBytes(b []byte)

func (*Code) String added in v0.6.0

func (_this *Code) String() string

func (*Code) ToCodeHtml

func (_this *Code) ToCodeHtml() string

func (*Code) Value

func (_this *Code) Value() []byte

type Test

type Test []*Code

func (*Test) ToString

func (_this *Test) ToString() string

func (*Test) Value

func (_this *Test) Value() []*Code

type Tests

type Tests struct {
	// contains filtered or unexported fields
}

func CreateTests

func CreateTests(code string, con *string) *Tests

CreateTests 根据代码片段和题目内容的描述生成测试用例

func (*Tests) FuncName

func (_this *Tests) FuncName() string

func (*Tests) ToBytes

func (_this *Tests) ToBytes() []byte

func (*Tests) ToCode

func (_this *Tests) ToCode() string

Jump to

Keyboard shortcuts

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