Documentation ¶
Overview ¶
Package artifacts is responsible for generating and structuring artifacts directory
Copyright 2019 The Knative Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Knative Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func LineCovFilePath(directory string) string
- type Artifacts
- func (arts *Artifacts) CovStdoutPath() string
- func (arts *Artifacts) Directory() string
- func (arts *Artifacts) JunitXmlForTestgridPath() string
- func (arts *Artifacts) KeyProfilePath() string
- func (arts *Artifacts) LineCovFilePath() string
- func (arts *Artifacts) ProfilePath() string
- func (arts *Artifacts) SetDirectory(dir string)
- type Intf
- type LocalArtifacts
- type ProfileReader
Constants ¶
const ( CovProfileCompletionMarker = "profile-completed" JunitXmlForTestgrid = "junit_bazel.xml" LineCovFileName = "line-cov.html" )
Variables ¶
This section is empty.
Functions ¶
func LineCovFilePath ¶
Types ¶
type Artifacts ¶
type Artifacts struct {
// contains filtered or unexported fields
}
func (*Artifacts) CovStdoutPath ¶
func (*Artifacts) JunitXmlForTestgridPath ¶
func (*Artifacts) KeyProfilePath ¶
func (*Artifacts) LineCovFilePath ¶
func (*Artifacts) ProfilePath ¶
func (*Artifacts) SetDirectory ¶
type Intf ¶
type Intf interface { ProfilePath() string KeyProfilePath() string ProfileReader() *ProfileReader }
type LocalArtifacts ¶
type LocalArtifacts struct {
Artifacts
}
func NewLocalArtifacts ¶
func NewLocalArtifacts(directory string, ProfileName string, KeyProfileName string, CovStdoutName string) *LocalArtifacts
func (*LocalArtifacts) KeyProfileCreator ¶
func (arts *LocalArtifacts) KeyProfileCreator() *os.File
KeyProfileCreator creates a key profile file that will be used to hold a filtered version of coverage profile that only stores the entries that will be displayed by line coverage tool
func (*LocalArtifacts) ProduceProfileFile ¶
func (arts *LocalArtifacts) ProduceProfileFile(covTargetsStr string)
ProduceProfileFile produce coverage profile (&its stdout) by running go test on target package for periodic job, produce junit xml for testgrid in addition
func (*LocalArtifacts) ProfileName ¶
func (arts *LocalArtifacts) ProfileName() string
func (*LocalArtifacts) ProfileReader ¶
func (arts *LocalArtifacts) ProfileReader() *ProfileReader
ProfileReader create and returns a ProfileReader by opening the file stored in profile path
type ProfileReader ¶
type ProfileReader struct {
io.ReadCloser
}
func NewProfileReader ¶
func NewProfileReader(reader io.ReadCloser) *ProfileReader