JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 2.57.91.180  /  Your IP : 216.73.216.254
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/golang/1.22.0/src/go/printer/testdata/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/golang/1.22.0/src/go/printer/testdata/linebreaks.golden
// Copyright 2009 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.

package linebreaks

import (
	"bytes"
	"fmt"
	"io"
	"os"
	"reflect"
	"strings"
	"testing"
)

type writerTestEntry struct {
	header		*Header
	contents	string
}

type writerTest struct {
	file	string	// filename of expected output
	entries	[]*writerTestEntry
}

var writerTests = []*writerTest{
	&writerTest{
		file:	"testdata/writer.tar",
		entries: []*writerTestEntry{
			&writerTestEntry{
				header: &Header{
					Name:		"small.txt",
					Mode:		0640,
					Uid:		73025,
					Gid:		5000,
					Size:		5,
					Mtime:		1246508266,
					Typeflag:	'0',
					Uname:		"dsymonds",
					Gname:		"eng",
				},
				contents:	"Kilts",
			},
			&writerTestEntry{
				header: &Header{
					Name:		"small2.txt",
					Mode:		0640,
					Uid:		73025,
					Gid:		5000,
					Size:		11,
					Mtime:		1245217492,
					Typeflag:	'0',
					Uname:		"dsymonds",
					Gname:		"eng",
				},
				contents:	"Google.com\n",
			},
		},
	},
	// The truncated test file was produced using these commands:
	//   dd if=/dev/zero bs=1048576 count=16384 > /tmp/16gig.txt
	//   tar -b 1 -c -f- /tmp/16gig.txt | dd bs=512 count=8 > writer-big.tar
	&writerTest{
		file:	"testdata/writer-big.tar",
		entries: []*writerTestEntry{
			&writerTestEntry{
				header: &Header{
					Name:		"tmp/16gig.txt",
					Mode:		0640,
					Uid:		73025,
					Gid:		5000,
					Size:		16 << 30,
					Mtime:		1254699560,
					Typeflag:	'0',
					Uname:		"dsymonds",
					Gname:		"eng",
				},
				// no contents
			},
		},
	},
}

type untarTest struct {
	file	string
	headers	[]*Header
}

var untarTests = []*untarTest{
	&untarTest{
		file:	"testdata/gnu.tar",
		headers: []*Header{
			&Header{
				Name:		"small.txt",
				Mode:		0640,
				Uid:		73025,
				Gid:		5000,
				Size:		5,
				Mtime:		1244428340,
				Typeflag:	'0',
				Uname:		"dsymonds",
				Gname:		"eng",
			},
			&Header{
				Name:		"small2.txt",
				Mode:		0640,
				Uid:		73025,
				Gid:		5000,
				Size:		11,
				Mtime:		1244436044,
				Typeflag:	'0',
				Uname:		"dsymonds",
				Gname:		"eng",
			},
		},
	},
	&untarTest{
		file:	"testdata/star.tar",
		headers: []*Header{
			&Header{
				Name:		"small.txt",
				Mode:		0640,
				Uid:		73025,
				Gid:		5000,
				Size:		5,
				Mtime:		1244592783,
				Typeflag:	'0',
				Uname:		"dsymonds",
				Gname:		"eng",
				Atime:		1244592783,
				Ctime:		1244592783,
			},
			&Header{
				Name:		"small2.txt",
				Mode:		0640,
				Uid:		73025,
				Gid:		5000,
				Size:		11,
				Mtime:		1244592783,
				Typeflag:	'0',
				Uname:		"dsymonds",
				Gname:		"eng",
				Atime:		1244592783,
				Ctime:		1244592783,
			},
		},
	},
	&untarTest{
		file:	"testdata/v7.tar",
		headers: []*Header{
			&Header{
				Name:		"small.txt",
				Mode:		0444,
				Uid:		73025,
				Gid:		5000,
				Size:		5,
				Mtime:		1244593104,
				Typeflag:	'\x00',
			},
			&Header{
				Name:		"small2.txt",
				Mode:		0444,
				Uid:		73025,
				Gid:		5000,
				Size:		11,
				Mtime:		1244593104,
				Typeflag:	'\x00',
			},
		},
	},
}

var facts = map[int]string{
	0:	"1",
	1:	"1",
	2:	"2",
	10:	"3628800",
	20:	"2432902008176640000",
	100: "933262154439441526816992388562667004907159682643816214685929" +
		"638952175999932299156089414639761565182862536979208272237582" +
		"51185210916864000000000000000000000000",
}

func usage() {
	fmt.Fprintf(os.Stderr,
		// TODO(gri): the 2nd string of this string list should not be indented
		"usage: godoc package [name ...]\n"+
			"	godoc -http=:6060\n")
	flag.PrintDefaults()
	os.Exit(2)
}

func TestReader(t *testing.T) {
testLoop:
	for i, test := range untarTests {
		f, err := os.Open(test.file, os.O_RDONLY, 0444)
		if err != nil {
			t.Errorf("test %d: Unexpected error: %v", i, err)
			continue
		}
		tr := NewReader(f)
		for j, header := range test.headers {
			hdr, err := tr.Next()
			if err != nil || hdr == nil {
				t.Errorf("test %d, entry %d: Didn't get entry: %v", i, j, err)
				f.Close()
				continue testLoop
			}
			if !reflect.DeepEqual(hdr, header) {
				t.Errorf("test %d, entry %d: Incorrect header:\nhave %+v\nwant %+v",
					i, j, *hdr, *header)
			}
		}
		hdr, err := tr.Next()
		if hdr != nil || err != nil {
			t.Errorf("test %d: Unexpected entry or error: hdr=%v err=%v", i, err)
		}
		f.Close()
	}
}

// Respect line breaks in function calls.
func _() {
	f(x)
	f(x,
		x)
	f(x,
		x,
	)
	f(
		x,
		x)
	f(
		x,
		x,
	)
}

// Respect line breaks in function declarations.
func _(x T)	{}
func _(x T,
	y T) {
}
func _(x T,
	y T,
) {
}
func _(
	x T,
	y T) {
}
func _(
	x T,
	y T,
) {
}

// Example from issue #2597.
func ManageStatus0(
	in <-chan *Status,
	req <-chan Request,
	stat chan<- *TargetInfo,
	TargetHistorySize int) {
}

func ManageStatus1(
	in <-chan *Status,
	req <-chan Request,
	stat chan<- *TargetInfo,
	TargetHistorySize int,
) {
}

// Example from issue #9064.
func (y *y) xerrors() error {
	_ = "xerror.test"	//TODO-
	_ = []byte(`
foo bar foo bar foo bar
`) //TODO-
}

func _() {
	_ = "abc"		// foo
	_ = `abc_0123456789_`	// foo
}

func _() {
	_ = "abc"	// foo
	_ = `abc
0123456789
` // foo
}

// There should be exactly one linebreak after this comment.

Youez - 2016 - github.com/yon3zu
LinuXploit