File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ func (nv *NodeVisitor) DeclaredInterfaces() []string {
358358func (nv * NodeVisitor ) add (ctx context.Context , n * ast.TypeSpec ) {
359359 log := zerolog .Ctx (ctx )
360360 log .Debug ().
361+ Str ("node-name" , n .Name .Name ).
361362 Str ("node-type" , fmt .Sprintf ("%T" , n .Type )).
362363 Msg ("found node with acceptable type for mocking" )
363364 nv .declaredInterfaces = append (nv .declaredInterfaces , n .Name .Name )
@@ -382,7 +383,7 @@ func (nv *NodeVisitor) Visit(node ast.Node) ast.Visitor {
382383 case * ast.InterfaceType , * ast.IndexExpr :
383384 nv .add (nv .ctx , n )
384385 default :
385- log .Debug ().Msg ("Found node with unacceptable type for mocking. Rejecting." )
386+ log .Debug ().Msg ("found node with unacceptable type for mocking. Rejecting." )
386387 }
387388 }
388389 return nv
You can’t perform that action at this time.
0 commit comments