Documentation
¶
Overview ¶
* Copyright 2022 ByteDance Inc. * * 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 * * http://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 2022 ByteDance Inc. * * 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 * * http://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 ¶
- func AddedImportToTrc(w io.Writer, filepath string, srcImports, tarImports []*Import) (map[string]struct{}, error)
- func Concatenate(src, trc string, tarImports []*Import) error
- func GetAllFunctionInFile(options atgconstant.Options) ([]string, error)
- func GetOriginExprV2(c *CoverFile, node ast.Node) []byte
- func ModifySrcBasedTarget(w io.Writer, filepath string, targetFunction map[string]struct{}) error
- func NewFunctionBuilder(ctx context.Context) *functionBuilder
- func NewInstrumentation(file string, funcName, id string) ([]byte, int, error)
- type Branch
- type CoverFile
- type File
- type Func
- type Import
- type SrcFileModify
- type SrcFileRecord
- type TestedFunctionInfo
- type TrcFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddedImportToTrc ¶
func Concatenate ¶
func GetAllFunctionInFile ¶
func GetAllFunctionInFile(options atgconstant.Options) ([]string, error)
func ModifySrcBasedTarget ¶
func NewFunctionBuilder ¶
Types ¶
type CoverFile ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a wrapper for the state of a file used in the parser. The basic parse tree walker is a method of this type.
type SrcFileModify ¶
type SrcFileModify struct { TargetFunctions map[string]struct{} // contains filtered or unexported fields }
type SrcFileRecord ¶
type SrcFileRecord struct {
// contains filtered or unexported fields
}