github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/cmn/debug/debug_off.go (about)

     1  //go:build !debug
     2  
     3  // Package provides debug utilities
     4  /*
     5   * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
     6   */
     7  package debug
     8  
     9  import (
    10  	"net/http"
    11  	"sync"
    12  )
    13  
    14  func ON() bool { return false }
    15  
    16  func Infof(_ string, _ ...any) {}
    17  
    18  func Func(_ func()) {}
    19  
    20  func Assert(_ bool, _ ...any)            {}
    21  func AssertFunc(_ func() bool, _ ...any) {}
    22  func AssertNoErr(_ error)                {}
    23  func Assertf(_ bool, _ string, _ ...any) {}
    24  
    25  func AssertNotPstr(any) {}
    26  func FailTypeCast(any)  {}
    27  
    28  func AssertMutexLocked(_ *sync.Mutex)      {}
    29  func AssertRWMutexLocked(_ *sync.RWMutex)  {}
    30  func AssertRWMutexRLocked(_ *sync.RWMutex) {}
    31  
    32  func Handlers() map[string]http.HandlerFunc {
    33  	return nil
    34  }