<commit_before>package TDApiTest

import (
	"fmt"
	"github.com/jeanlebrument/TDApiTest/Godeps/_workspace/src/github.com/stretchr/testify/assert"
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"net/url"
	"reflect"
	"runtime"
	"strings"
	"testing"
)

type TestToRun struct {
	Desc     string
	Header   map[string]string
	Params   url.Values
	Status   int
	TestFunc func(*testing.T, string)
}

type TestsToRun []TestToRun

type TestContainer struct {
	Method     string
	Path       string
	TestsToRun TestsToRun
}

type TestContainers []TestContainer

type AbstractRouter interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

type Logger interface {
	Log(message string) error
}

type TDApiTest struct {
	router         AbstractRouter
	logger         Logger
	RespRec        *httptest.ResponseRecorder
	TestContainers TestContainers
}

func NewTDApiTest(router AbstractRouter, logger Logger) *TDApiTest {
	return &TDApiTest{router: router, logger: logger}
}

func (td *TDApiTest) beforeEach() {<commit_msg>Try tricks to fix the import of deps by godep for tests<commit_after>package TDApiTest

import (
	"fmt"
	"github.com/jeanlebrument/TDApiTest/Godeps/_workspace/src/github.com/stretchr/testify/assert"
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"net/url"
	"reflect"
	"runtime"
	"strings"
	"testing"
)

type TestToRun struct {
	Desc     string
	Header   map[string]string
	Params   url.Values
	Status   int
	TestFunc func(*testing.T, string)
}

type TestsToRun []TestToRun

type TestContainer struct {
	Method     string
	Path       string
	TestsToRun TestsToRun
}

type TestContainers []TestContainer

type AbstractRouter interface {
	ServeHTTP(http.ResponseWriter, *http.Request)
}

type Logger interface {
	Log(message string) error
}

type TDApiTest struct {
	router         AbstractRouter
	logger         Logger
	RespRec        *httptest.ResponseRecorder
	TestContainers TestContainers
}

func init() {
	var _ assert.Assertions // Tricks for Godep to import packages needed by tests.
}

func NewTDApiTest(router AbstractRouter, logger Logger) *TDApiTest {
	return &TDApiTest{router: router, logger: logger}
}

func (td *TDApiTest) beforeEach() {
{'fraction_non_alphanumeric': 0.08796296296296297, 'fraction_numerical': 0.0, 'mean_word_length': 4.157517899761337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2426034', 'n_tokens_mistral': 749, 'n_tokens_neox': 744, 'n_words': 182}