...

Source file src/github.com/gregjones/httpcache/diskcache/diskcache_test.go

Documentation: github.com/gregjones/httpcache/diskcache

     1  package diskcache
     2  
     3  import (
     4  	"io/ioutil"
     5  	"os"
     6  	"testing"
     7  
     8  	"github.com/gregjones/httpcache/test"
     9  )
    10  
    11  func TestDiskCache(t *testing.T) {
    12  	tempDir, err := ioutil.TempDir("", "httpcache")
    13  	if err != nil {
    14  		t.Fatalf("TempDir: %v", err)
    15  	}
    16  	defer os.RemoveAll(tempDir)
    17  
    18  	test.Cache(t, New(tempDir))
    19  }
    20  

View as plain text