github.com/unicornultrafoundation/go-u2u@v1.0.0-rc1.0.20240205080301-e74a83d3fadc/utils/memory/memory_test.go (about)

     1  package memory
     2  
     3  import "testing"
     4  
     5  func TestNonZero(t *testing.T) {
     6  	if TotalMemory() == 0 {
     7  		t.Fatal("TotalMemory returned 0")
     8  	}
     9  	if FreeMemory() == 0 {
    10  		t.Fatal("FreeMemory returned 0")
    11  	}
    12  }