report_portal

package
v0.0.0-...-8d22e20 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XMLExtensionName = "xml"
)

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string) error

func GetXMLFilesFromDir

func GetXMLFilesFromDir(dir string, ext string) []string

func ZipFiles

func ZipFiles(filename string, files []string) error

ZipFiles compresses one or many files into a single zip archive file. Param 1: filename is the output zip file's name. Param 2: files is a list of files to add to the zip.

Types

type API

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

func NewReportPortalClient

func NewReportPortalClient(reportPortal *api.ReportPortal) *API

func (*API) Do

func (c *API) Do(req *http.Request) (*http.Response, error)

func (*API) Post

func (c *API) Post(ctx context.Context, path string, contentType string, body io.Reader) (*http.Response, error)

func (*API) SendResultsToReportPortal

func (c *API) SendResultsToReportPortal()

Jump to

Keyboard shortcuts

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