...

Source file src/github.com/cybertec-postgresql/pgwatch/v6/internal/sources/export_test.go

Documentation: github.com/cybertec-postgresql/pgwatch/v6/internal/sources

     1  package sources
     2  
     3  import "time"
     4  
     5  // SetLastCheckedForTesting sets the atomic lastCheckedNs timestamp on a DbConn.
     6  // It is only used in tests to simulate a recently-fetched state without hitting the DB.
     7  func (md *DbConn) SetLastCheckedForTesting(t time.Time) {
     8  	md.lastCheckedNs.Store(t.UnixNano())
     9  }
    10