github.com/BlockABC/godash@v0.0.0-20191112120524-f4aa3a32c566/peer/export_test.go (about)

     1  // Copyright (c) 2015 The btcsuite developers
     2  // Copyright (c) 2016 The Dash developers
     3  // Use of this source code is governed by an ISC
     4  // license that can be found in the LICENSE file.
     5  
     6  /*
     7  This test file is part of the peer package rather than than the peer_test
     8  package so it can bridge access to the internals to properly test cases which
     9  are either not possible or can't reliably be tested via the public interface.
    10  The functions are only exported while the tests are being run.
    11  */
    12  
    13  package peer
    14  
    15  // TstAllowSelfConns allows the test package to allow self connections by
    16  // disabling the detection logic.
    17  func TstAllowSelfConns() {
    18  	allowSelfConns = true
    19  }