reader

package
v0.0.0-...-1532427 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseXMLTestCase

func ParseXMLTestCase(file string, xmlTestCaseType interface{}) error

Types

type Operation

type Operation struct {
	ID           string  `xml:"ID,attr"`
	Name         string  `xml:"Name,attr"`
	ArgumentType string  `xml:"ArgumentType,attr"`
	Value        string  `xml:"Value,attr,omitempty"`
	Replies      []Reply `xml:"ExpectedReplies>Reply"`
}

type Operations

type Operations struct {
	OpType string      `xml:"Type,attr"`
	Op     []Operation `xml:"Operation"`
}

type Reply

type Reply struct {
	Type  string `xml:"Type,attr"`
	Value string `xml:"Value,attr,omitempty"`
}

type Test

type Test struct {
	XMLName    xml.Name   `xml:"Test"`
	Name       string     `xml:"TestName,attr"`
	SystemSize int        `xml:"SystemSize,attr"`
	QuorumSize int        `xml:"QuorumSize,attr"`
	TestCases  []TestCase `xml:"TestCase"`
}

type TestCase

type TestCase struct {
	XMLName     xml.Name     `xml:"TestCase"`
	Name        string       `xml:"Name,attr"`
	Description string       `xml:"Description,attr"`
	OrderOp     []Operations `xml:"Operations,omitempty"`
}

type XMLReadQFExpectResults

type XMLReadQFExpectResults struct {
	XMLName         xml.Name `xml:"ExpectResults"`
	ExpectValue     string   `xml:"Value"`
	ExpectTimestamp int64    `xml:"Timestamp"`
}

type XMLReadQFTest

type XMLReadQFTest struct {
	XMLName   xml.Name             `xml:"Test"`
	TestName  string               `xml:"TestName,attr"`
	TestCases []XMLReadQFTestCases `xml:"TestCase"`
}

XMLReadQFTest is an exported type for ReadQF tests

type XMLReadQFTestCases

type XMLReadQFTestCases struct {
	XMLName       xml.Name                `xml:"TestCase"`
	CaseID        string                  `xml:"CaseID,attr"`
	TestValues    []*XMLReadQFTestValues  `xml:"TestValues>Content"`
	ExpectResults *XMLReadQFExpectResults `xml:"ExpectResults"`
	ExpectQuorum  bool                    `xml:"ExpectQuorum"`
}

type XMLReadQFTestValues

type XMLReadQFTestValues struct {
	XMLName       xml.Name `xml:"Content"`
	TestValue     string   `xml:"Value"`
	TestTimestamp int64    `xml:"Timestamp"`
}

type XMLSysTest

type XMLSysTest struct {
	XMLName   xml.Name          `xml:"Test"`
	TestName  string            `xml:"TestName,attr"`
	TestCases []XMLSysTestCases `xml:"TestCase"`
}

XMLSysTest is an exported type for System tests

type XMLSysTestCases

type XMLSysTestCases struct {
	XMLName  xml.Name             `xml:"TestCase"`
	CaseID   string               `xml:"CaseID,attr"`
	Routines []XMLSysTestRoutines `xml:"Routine"`
}

type XMLSysTestRoutines

type XMLSysTestRoutines struct {
	XMLName       xml.Name             `xml:"Routine"`
	RoutineID     string               `xml:"RoutineID,attr"`
	OperationName string               `xml:"OperationName,attr"`
	RoutineValues []string             `xml:"OperationValues>Value"`
	Routines      []XMLSysTestRoutines `xml:"Routine"`
}

type XMLWriteQFExpectResults

type XMLWriteQFExpectResults struct {
	XMLName  xml.Name `xml:"ExpectResults"`
	Response bool     `xml:"Response"`
}

type XMLWriteQFTest

type XMLWriteQFTest struct {
	XMLName   xml.Name              `xml:"Test"`
	TestName  string                `xml:"TestName,attr"`
	TestCases []XMLWriteQFTestCases `xml:"TestCase"`
}

XMLWriteQFTest is an exported type for WriteQF tests

type XMLWriteQFTestCases

type XMLWriteQFTestCases struct {
	XMLName       xml.Name                 `xml:"TestCase"`
	CaseID        string                   `xml:"CaseID,attr"`
	TestValues    []*XMLWriteQFTestValues  `xml:"TestValues>Content"`
	ExpectResults *XMLWriteQFExpectResults `xml:"ExpectResults"`
	ExpectQuorum  bool                     `xml:"ExpectQuorum"`
}

type XMLWriteQFTestValues

type XMLWriteQFTestValues struct {
	XMLName  xml.Name `xml:"Content"`
	Response bool     `xml:"Response"`
}

Jump to

Keyboard shortcuts

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