go.fuchsia.dev/infra@v0.0.0-20240507153436-9b593402251b/cmd/autocorrelator/test_common.go (about)

     1  // Copyright 2021 The Fuchsia Authors.
     2  // Use of this source code is governed by a BSD-style license that can be
     3  // found in the LICENSE file.
     4  
     5  package main
     6  
     7  // mockComparator is a comparator that always returns a 1.0 score.
     8  type mockComparator struct{}
     9  
    10  func (c mockComparator) Compare(s1, s2 string) float64 {
    11  	return 1.0
    12  }