...

Source file src/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go

Documentation: github.com/google/go-cmp/cmp/internal/diff

     1  // Copyright 2017, The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !cmp_debug
     6  // +build !cmp_debug
     7  
     8  package diff
     9  
    10  var debug debugger
    11  
    12  type debugger struct{}
    13  
    14  func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc {
    15  	return f
    16  }
    17  func (debugger) Update() {}
    18  func (debugger) Finish() {}
    19  

View as plain text