Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tool (0.13 sec)

  1. utils/utils_test.go

    			t.Fatalf("failed to parse db name %v", db)
    		}
    	}
    }
    
    func TestCheckTruth(t *testing.T) {
    	checkTruthTests := []struct {
    		v   string
    		out bool
    	}{
    		{"123", true},
    		{"true", true},
    		{"", false},
    		{"false", false},
    		{"False", false},
    		{"FALSE", false},
    		{"\u0046alse", false},
    	}
    
    	for _, test := range checkTruthTests {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. cmd/utils_test.go

    	"encoding/json"
    	"errors"
    	"fmt"
    	"net/http"
    	"net/url"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    // Tests maximum object size.
    func TestMaxObjectSize(t *testing.T) {
    	sizes := []struct {
    		isMax bool
    		size  int64
    	}{
    		// Test - 1 - maximum object size.
    		{
    			true,
    			globalMaxObjectSize + 1,
    		},
    		// Test - 2 - not maximum object size.
    		{
    			false,
    			globalMaxObjectSize - 1,
    		},
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top