github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/net/http/repo/t1_fetching_test.go (about)

     1  // +build fetch1
     2  // go test -tags=fetch1
     3  
     4  package repo
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/pbberlin/tools/net/http/loghttp"
    10  
    11  	"appengine/aetest"
    12  )
    13  
    14  func Test1(t *testing.T) {
    15  
    16  	lg, lge := loghttp.Logger(nil, nil)
    17  
    18  	c, err := aetest.NewContext(nil)
    19  	if err != nil {
    20  		lge(err)
    21  		t.Fatal(err)
    22  	}
    23  	defer c.Close()
    24  
    25  	whichType = 2
    26  	fs := GetFS(c)
    27  	lg(fs.Name() + "-" + fs.String())
    28  
    29  	for _, config := range testCommands {
    30  		Fetch(nil, nil, fs, config)
    31  	}
    32  
    33  }