Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testCase (0.17 sec)

  1. src/cmd/asm/internal/asm/testdata/mips64.s

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This input was created by taking the ppc64 testcase and modified
    // by hand.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT foo(SB),DUPOK|NOSPLIT,$0
    //
    // branch
    //
    //	LBRA rel
    //	{
    //		outcode(int($1), &nullgen, 0, &$2);
    //	}
    	BEQ	R1, 2(PC)
    label0:
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	for ; n > 0; n-- {
    		m, err := buf.WriteString(fus)
    		if m != len(fus) {
    			t.Errorf(testname+" (fill 2): m == %d, expected %d", m, len(fus))
    		}
    		if err != nil {
    			t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err)
    		}
    		s += fus
    		check(t, testname+" (fill 4)", buf, s)
    	}
    	return s
    }
    
    // Fill buf through n writes of byte slice fub.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    			}
    			f.Close()
    		})
    	}
    }
    
    func TestPartialRead(t *testing.T) {
    	type testCase struct {
    		cnt    int    // Number of bytes to read
    		output string // Expected value of string read
    	}
    	vectors := []struct {
    		file  string
    		cases []testCase
    	}{{
    		file: "testdata/gnu.tar",
    		cases: []testCase{
    			{4, "Kilt"},
    			{6, "Google"},
    		},
    	}, {
    		file: "testdata/sparse-formats.tar",
    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)
Back to top