Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_int (0.17 sec)

  1. internal/bucket/object/lock/lock_test.go

    package lock
    
    import (
    	"encoding/xml"
    	"errors"
    	"fmt"
    	"net/http"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func TestParseMode(t *testing.T) {
    	testCases := []struct {
    		value        string
    		expectedMode RetMode
    	}{
    		{
    			value:        "governance",
    			expectedMode: RetGovernance,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/lock/lock_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lock
    
    import (
    	"os"
    	"testing"
    	"time"
    )
    
    // Test lock fails.
    func TestLockFail(t *testing.T) {
    	f, err := os.CreateTemp("", "lock")
    	if err != nil {
    		t.Fatal(err)
    	}
    	f.Close()
    	defer func() {
    		err = os.Remove(f.Name())
    		if err != nil {
    			t.Fatal(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.6K bytes
    - Viewed (0)
Back to top