Documentation ¶
Overview ¶
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.
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
- Variables
- func AbsPath(pathRelToProj string) string
- func AssertEqual(t *testing.T, expected, actual interface{})
- func DeleteDir(dir string)
- func Fail(t *testing.T, input, expected, actual interface{})
- func FileOrDirExists(path string) bool
- func LinkInputArts(artsDir string, artNames ...string)
- func MkdirAll(path string)
- func NewArtsDir(dirPrefix string) string
- func ProjDir() string
- func StrFailure(input, expected, actual string) string
Constants ¶
const ( ProfileName = "cov-profile.txt" KeyProfileName = "key-cov-profile.txt" StdoutName = "stdout.txt" CovTargetRootRel = "testTarget" CovTargetRelPath = CovTargetRootRel + "/presubmit" )
Variables ¶
var ( InputArtifactsDir = AbsPath("testdata/artifacts") CovTargetDir = AbsPath(CovTargetRelPath) + "/" )
Functions ¶
func AssertEqual ¶
func FileOrDirExists ¶
func LinkInputArts ¶
func NewArtsDir ¶
func StrFailure ¶
StrFailure is used to display discrepancy between expected and actual result in test
Types ¶
This section is empty.