<commit_before>package main

import (
	"net/http"
	"net/http/httptest"
	"testing"
)

func TestRootAccess(t *testing.T) {
	response := httptest.NewRecorder()

	n := setUpServer()

	req, err := http.NewRequest("GET", "http://localhost:8080/", nil)
	if err != nil {
		t.Error(err)<commit_msg>Add test for git clone<commit_after>package main

import (
	"net/http"
	"net/http/httptest"
	"testing"

	"github.com/wantedly/risu/schema"
)

func TestGitClone(t *testing.T) {
	opts := schema.BuildCreateOpts{
		SourceRepo: "wantedly/private-nginx-image-server",
		Name:       "quay.io/wantedly/private-nginx-image-server:test",
	}
	build := schema.NewBuild(opts)
	err := gitClone(build)
	if err != nil {
		t.Error(err)
	}
}

func TestRootAccess(t *testing.T) {
	response := httptest.NewRecorder()

	n := setUpServer()

	req, err := http.NewRequest("GET", "http://localhost:8080/", nil)
	if err != nil {
		t.Error(err)
{'fraction_non_alphanumeric': 0.16997792494481237, 'fraction_numerical': 0.008830022075055188, 'mean_word_length': 4.182857142857143, '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': '7076935', 'n_tokens_mistral': 372, 'n_tokens_neox': 354, 'n_words': 65}