<commit_before>// Copyright 2012, The gohg Authors. All rights reserved.
// Use of this source code is governed by a BSD style license
// that can be found in the LICENSE.md file.

package gohg

import (
	// "fmt"
	"os"
	"os/exec"
	// "path/filepath"
	"strings"
	"testing"
)

func TestHgClient_Branches(t *testing.T) {
	hct := setup(t)
	defer teardown(t, hct)

	// dropped the revision after the colon for more independent testing
	var expected string = "newbranch                      1:\n" +
		"default                        0:\n"

	f, err := os.Create(hct.RepoRoot() + "/a")
	_, _ = f.Write([]byte{'a', 'a', 'a'})
	f.Sync()
	f.Close()<commit_msg>branches_test.go: test for triggering a drone.io build<commit_after>// Copyright 2012, The gohg Authors. All rights reserved.
// Use of this source code is governed by a BSD style license
// that can be found in the LICENSE.md file.

package gohg

import (
	// "fmt"
	"os"
	"os/exec"
	// "path/filepath"
	"strings"
	"testing"
)

func TestHgClient_Branches(t *testing.T) {
	hct := setup(t)
	defer teardown(t, hct)

	// dropped the revision after the colon for more independent testing
	var expected string = "newbranch                      1:\n" +
		"default                        0:\n"

	f, err := os.Create(hct.RepoRoot() + "/a")
	_, _ = f.Write([]byte{'a', 'a', 'a'})
	f.Sync()
	f.Close()

{'fraction_non_alphanumeric': 0.14232488822652756, 'fraction_numerical': 0.00894187779433681, 'mean_word_length': 2.6494565217391304, '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': '180943', 'n_tokens_mistral': 488, 'n_tokens_neox': 463, 'n_words': 149}