Documentation ¶
Index ¶
- Variables
- func RegisterCommentcovPluginServer(s grpc.ServiceRegistrar, srv CommentcovPluginServer)
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetEndColumn() uint32
- func (x *Block) GetEndLine() uint32
- func (x *Block) GetStartColumn() uint32
- func (x *Block) GetStartLine() uint32
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type Comment
- type CommentcovPluginClient
- type CommentcovPluginServer
- type CoverageItem
- func (*CoverageItem) Descriptor() ([]byte, []int)deprecated
- func (x *CoverageItem) GetExtension() string
- func (x *CoverageItem) GetFile() string
- func (x *CoverageItem) GetHeaderComments() []*Comment
- func (x *CoverageItem) GetIdentifier() string
- func (x *CoverageItem) GetInlineComments() []*Comment
- func (x *CoverageItem) GetScope() CoverageItem_Scope
- func (x *CoverageItem) GetTargetBlock() *Block
- func (*CoverageItem) ProtoMessage()
- func (x *CoverageItem) ProtoReflect() protoreflect.Message
- func (x *CoverageItem) Reset()
- func (x *CoverageItem) String() string
- type CoverageItem_Scope
- func (CoverageItem_Scope) Descriptor() protoreflect.EnumDescriptor
- func (x CoverageItem_Scope) Enum() *CoverageItem_Scope
- func (CoverageItem_Scope) EnumDescriptor() ([]byte, []int)deprecated
- func (x CoverageItem_Scope) Number() protoreflect.EnumNumber
- func (x CoverageItem_Scope) String() string
- func (CoverageItem_Scope) Type() protoreflect.EnumType
- type MeasureCoverageIn
- type MeasureCoverageOut
- func (*MeasureCoverageOut) Descriptor() ([]byte, []int)deprecated
- func (x *MeasureCoverageOut) GetCoverageItems() []*CoverageItem
- func (*MeasureCoverageOut) ProtoMessage()
- func (x *MeasureCoverageOut) ProtoReflect() protoreflect.Message
- func (x *MeasureCoverageOut) Reset()
- func (x *MeasureCoverageOut) String() string
- type UnimplementedCommentcovPluginServer
- type UnsafeCommentcovPluginServer
Constants ¶
This section is empty.
Variables ¶
var ( CoverageItem_Scope_name = map[int32]string{ 0: "UNKNOWN", 1: "FILE", 2: "PUBLIC_MODULE", 3: "PRIVATE_MODULE", 4: "PUBLIC_CLASS", 5: "PRIVATE_CLASS", 6: "PUBLIC_TYPE", 7: "PRIVATE_TYPE", 8: "PUBLIC_FUNCTION", 9: "PRIVATE_FUNCTION", 10: "PUBLIC_VARIABLE", 11: "PRIVATE_VARIABLE", } CoverageItem_Scope_value = map[string]int32{ "UNKNOWN": 0, "FILE": 1, "PUBLIC_MODULE": 2, "PRIVATE_MODULE": 3, "PUBLIC_CLASS": 4, "PRIVATE_CLASS": 5, "PUBLIC_TYPE": 6, "PRIVATE_TYPE": 7, "PUBLIC_FUNCTION": 8, "PRIVATE_FUNCTION": 9, "PUBLIC_VARIABLE": 10, "PRIVATE_VARIABLE": 11, } )
Enum value maps for CoverageItem_Scope.
var CommentcovPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "commentcov.plugin.CommentcovPlugin", HandlerType: (*CommentcovPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MeasureCoverage", Handler: _CommentcovPlugin_MeasureCoverage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "commentcov-proto/commentcov_plugin.proto", }
CommentcovPlugin_ServiceDesc is the grpc.ServiceDesc for CommentcovPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_commentcov_proto_commentcov_plugin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommentcovPluginServer ¶
func RegisterCommentcovPluginServer(s grpc.ServiceRegistrar, srv CommentcovPluginServer)
Types ¶
type Block ¶
type Block struct { StartLine uint32 `protobuf:"varint,1,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` StartColumn uint32 `protobuf:"varint,2,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"` EndLine uint32 `protobuf:"varint,3,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"` EndColumn uint32 `protobuf:"varint,4,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetEndColumn ¶
func (*Block) GetEndLine ¶
func (*Block) GetStartColumn ¶
func (*Block) GetStartLine ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type Comment ¶
type Comment struct { Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetComment ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentcovPluginClient ¶
type CommentcovPluginClient interface {
MeasureCoverage(ctx context.Context, in *MeasureCoverageIn, opts ...grpc.CallOption) (*MeasureCoverageOut, error)
}
CommentcovPluginClient is the client API for CommentcovPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCommentcovPluginClient ¶
func NewCommentcovPluginClient(cc grpc.ClientConnInterface) CommentcovPluginClient
type CommentcovPluginServer ¶
type CommentcovPluginServer interface { MeasureCoverage(context.Context, *MeasureCoverageIn) (*MeasureCoverageOut, error) // contains filtered or unexported methods }
CommentcovPluginServer is the server API for CommentcovPlugin service. All implementations must embed UnimplementedCommentcovPluginServer for forward compatibility
type CoverageItem ¶
type CoverageItem struct { Scope CoverageItem_Scope `protobuf:"varint,1,opt,name=scope,proto3,enum=commentcov.plugin.CoverageItem_Scope" json:"scope,omitempty"` TargetBlock *Block `protobuf:"bytes,2,opt,name=target_block,json=targetBlock,proto3" json:"target_block,omitempty"` File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` Identifier string `protobuf:"bytes,4,opt,name=identifier,proto3" json:"identifier,omitempty"` Extension string `protobuf:"bytes,5,opt,name=extension,proto3" json:"extension,omitempty"` HeaderComments []*Comment `protobuf:"bytes,6,rep,name=header_comments,json=headerComments,proto3" json:"header_comments,omitempty"` InlineComments []*Comment `protobuf:"bytes,7,rep,name=inline_comments,json=inlineComments,proto3" json:"inline_comments,omitempty"` // contains filtered or unexported fields }
func (*CoverageItem) Descriptor
deprecated
func (*CoverageItem) Descriptor() ([]byte, []int)
Deprecated: Use CoverageItem.ProtoReflect.Descriptor instead.
func (*CoverageItem) GetExtension ¶
func (x *CoverageItem) GetExtension() string
func (*CoverageItem) GetFile ¶
func (x *CoverageItem) GetFile() string
func (*CoverageItem) GetHeaderComments ¶
func (x *CoverageItem) GetHeaderComments() []*Comment
func (*CoverageItem) GetIdentifier ¶
func (x *CoverageItem) GetIdentifier() string
func (*CoverageItem) GetInlineComments ¶
func (x *CoverageItem) GetInlineComments() []*Comment
func (*CoverageItem) GetScope ¶
func (x *CoverageItem) GetScope() CoverageItem_Scope
func (*CoverageItem) GetTargetBlock ¶
func (x *CoverageItem) GetTargetBlock() *Block
func (*CoverageItem) ProtoMessage ¶
func (*CoverageItem) ProtoMessage()
func (*CoverageItem) ProtoReflect ¶
func (x *CoverageItem) ProtoReflect() protoreflect.Message
func (*CoverageItem) Reset ¶
func (x *CoverageItem) Reset()
func (*CoverageItem) String ¶
func (x *CoverageItem) String() string
type CoverageItem_Scope ¶
type CoverageItem_Scope int32
const ( CoverageItem_UNKNOWN CoverageItem_Scope = 0 CoverageItem_FILE CoverageItem_Scope = 1 CoverageItem_PUBLIC_MODULE CoverageItem_Scope = 2 CoverageItem_PRIVATE_MODULE CoverageItem_Scope = 3 CoverageItem_PUBLIC_CLASS CoverageItem_Scope = 4 CoverageItem_PRIVATE_CLASS CoverageItem_Scope = 5 CoverageItem_PUBLIC_TYPE CoverageItem_Scope = 6 CoverageItem_PRIVATE_TYPE CoverageItem_Scope = 7 CoverageItem_PUBLIC_FUNCTION CoverageItem_Scope = 8 CoverageItem_PRIVATE_FUNCTION CoverageItem_Scope = 9 CoverageItem_PUBLIC_VARIABLE CoverageItem_Scope = 10 CoverageItem_PRIVATE_VARIABLE CoverageItem_Scope = 11 )
func (CoverageItem_Scope) Descriptor ¶
func (CoverageItem_Scope) Descriptor() protoreflect.EnumDescriptor
func (CoverageItem_Scope) Enum ¶
func (x CoverageItem_Scope) Enum() *CoverageItem_Scope
func (CoverageItem_Scope) EnumDescriptor
deprecated
func (CoverageItem_Scope) EnumDescriptor() ([]byte, []int)
Deprecated: Use CoverageItem_Scope.Descriptor instead.
func (CoverageItem_Scope) Number ¶
func (x CoverageItem_Scope) Number() protoreflect.EnumNumber
func (CoverageItem_Scope) String ¶
func (x CoverageItem_Scope) String() string
func (CoverageItem_Scope) Type ¶
func (CoverageItem_Scope) Type() protoreflect.EnumType
type MeasureCoverageIn ¶
type MeasureCoverageIn struct { Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*MeasureCoverageIn) Descriptor
deprecated
func (*MeasureCoverageIn) Descriptor() ([]byte, []int)
Deprecated: Use MeasureCoverageIn.ProtoReflect.Descriptor instead.
func (*MeasureCoverageIn) GetFiles ¶
func (x *MeasureCoverageIn) GetFiles() []string
func (*MeasureCoverageIn) ProtoMessage ¶
func (*MeasureCoverageIn) ProtoMessage()
func (*MeasureCoverageIn) ProtoReflect ¶
func (x *MeasureCoverageIn) ProtoReflect() protoreflect.Message
func (*MeasureCoverageIn) Reset ¶
func (x *MeasureCoverageIn) Reset()
func (*MeasureCoverageIn) String ¶
func (x *MeasureCoverageIn) String() string
type MeasureCoverageOut ¶
type MeasureCoverageOut struct { CoverageItems []*CoverageItem `protobuf:"bytes,1,rep,name=coverage_items,json=coverageItems,proto3" json:"coverage_items,omitempty"` // contains filtered or unexported fields }
func (*MeasureCoverageOut) Descriptor
deprecated
func (*MeasureCoverageOut) Descriptor() ([]byte, []int)
Deprecated: Use MeasureCoverageOut.ProtoReflect.Descriptor instead.
func (*MeasureCoverageOut) GetCoverageItems ¶
func (x *MeasureCoverageOut) GetCoverageItems() []*CoverageItem
func (*MeasureCoverageOut) ProtoMessage ¶
func (*MeasureCoverageOut) ProtoMessage()
func (*MeasureCoverageOut) ProtoReflect ¶
func (x *MeasureCoverageOut) ProtoReflect() protoreflect.Message
func (*MeasureCoverageOut) Reset ¶
func (x *MeasureCoverageOut) Reset()
func (*MeasureCoverageOut) String ¶
func (x *MeasureCoverageOut) String() string
type UnimplementedCommentcovPluginServer ¶
type UnimplementedCommentcovPluginServer struct { }
UnimplementedCommentcovPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedCommentcovPluginServer) MeasureCoverage ¶
func (UnimplementedCommentcovPluginServer) MeasureCoverage(context.Context, *MeasureCoverageIn) (*MeasureCoverageOut, error)
type UnsafeCommentcovPluginServer ¶
type UnsafeCommentcovPluginServer interface {
// contains filtered or unexported methods
}
UnsafeCommentcovPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentcovPluginServer will result in compilation errors.