(ctx context.Context, target ModTreePath)
| 742 | } |
| 743 | |
| 744 | func (p ModTreePath) Contains(ctx context.Context, target ModTreePath) (result bool) { |
| 745 | defer func() { |
| 746 | debugTrace(ctx, "%v.Contains(%v) -> %v", p, target, result) |
| 747 | }() |
| 748 | if len(target) < len(p) { |
| 749 | // if the target is shorter, it can't be a sub-path |
| 750 | return false |
| 751 | } |
| 752 | targetParent := target[:len(p)] |
| 753 | return p.Equals(ctx, targetParent) |
| 754 | } |
| 755 | |
| 756 | func (p ModTreePath) Equals(ctx context.Context, other ModTreePath) (result bool) { |
| 757 | defer func() { |
no test coverage detected