Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for Actors (0.2 sec)

  1. src/archive/tar/tar_test.go

    	f.ops = f.ops[1:]
    	return f.pos, nil
    }
    
    func equalSparseEntries(x, y []sparseEntry) bool {
    	return (len(x) == 0 && len(y) == 0) || reflect.DeepEqual(x, y)
    }
    
    func TestSparseEntries(t *testing.T) {
    	vectors := []struct {
    		in   []sparseEntry
    		size int64
    
    		wantValid    bool          // Result of validateSparseEntries
    		wantAligned  []sparseEntry // Result of alignSparseEntries
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. src/archive/tar/strconv_test.go

    		{math.MaxInt64, 12, true},
    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    		ok := fitsInBase256(v.width, v.in)
    		if ok != v.ok {
    			t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok)
    		}
    	}
    }
    
    func TestParseNumeric(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want int64
    		ok   bool
    	}{
    		// Test base-256 (binary) encoded values.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    	"bytes"
    	"compress/bzip2"
    	"crypto/md5"
    	"errors"
    	"fmt"
    	"io"
    	"math"
    	"os"
    	"path"
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestReader(t *testing.T) {
    	vectors := []struct {
    		file    string    // Test input file
    		headers []*Header // Expected output headers
    		chksums []string  // MD5 checksum of files, leave as nil if not checked
    		err     error     // Expected error to occur
    	}{{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/BaseEncodingTest.java

          separated.withSeparator("$", 4);
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBase64() {
        // The following test vectors are specified in RFC 4648 itself
        testEncodingWithSeparators(base64(), "", "");
        testEncodingWithSeparators(base64(), "f", "Zg==");
        testEncodingWithSeparators(base64(), "fo", "Zm8=");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

          separated.withSeparator("$", 4);
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testBase64() {
        // The following test vectors are specified in RFC 4648 itself
        testEncodingWithSeparators(base64(), "", "");
        testEncodingWithSeparators(base64(), "f", "Zg==");
        testEncodingWithSeparators(base64(), "fo", "Zm8=");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    		testFnc any // testHeader | testWrite | testReadFrom | testClose
    	)
    
    	vectors := []struct {
    		file  string // Optional filename of expected output
    		tests []testFnc
    	}{{
    		// The writer test file was produced with this command:
    		// tar (GNU tar) 1.26
    		//   ln -s small.txt link.txt
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
      }
    
      /**
       * Verifies that {@code ctor} produces a {@link NullPointerException} or {@link
       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  8. internal/config/api/api.go

    	if corsList == "" {
    		corsAllowOrigin = []string{"*"} // defaults to '*'
    	} else {
    		corsAllowOrigin = strings.Split(corsList, ",")
    		for _, cors := range corsAllowOrigin {
    			if cors == "" {
    				return cfg, errors.New("invalid cors value")
    			}
    		}
    	}
    	cfg.CorsAllowOrigin = corsAllowOrigin
    
    	if err = config.CheckValidKeys(config.APISubSys, kvs, DefaultKVS, deprecatedKeys...); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        }
      }
    
      /**
       * Verifies that {@code ctor} produces a {@link NullPointerException} or {@link
       * UnsupportedOperationException} whenever <i>any</i> of its non-nullable parameters are null.
       */
      public void testConstructor(Constructor<?> ctor) {
        Class<?> declaringClass = ctor.getDeclaringClass();
        checkArgument(
            Modifier.isStatic(declaringClass.getModifiers())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
  10. cmd/api-router.go

    	{
    		api:     "inventory",
    		methods: []string{http.MethodGet, http.MethodPut, http.MethodDelete},
    		queries: []string{"inventory", ""},
    	},
    	{
    		api:     "cors",
    		methods: []string{http.MethodPut, http.MethodDelete},
    		queries: []string{"cors", ""},
    	},
    	{
    		api:     "metrics",
    		methods: []string{http.MethodGet, http.MethodPut, http.MethodDelete},
    		queries: []string{"metrics", ""},
    	},
    	{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
Back to top