<commit_before>package main

import (
	"testing"

	. "github.com/VonC/godbg"
	"github.com/VonC/godbg/exit"
	. "github.com/smartystreets/goconvey/convey"
)

func TestMain(t *testing.T) {

	exiter = exit.New(func(int) {})

	Convey("senvgo main installation scenario with no command", t, func() {
		SetBuffers(nil)
		main()
		So(ErrString(), ShouldEqualNL, `  [main:7] (func.001:14)
    senvgo
`)
		So(exiter.Status(), ShouldEqual, 0)

		Convey("No prg means no prgs installed", func() {
			SetBuffers(nil)
			main()
			So(OutString(), ShouldEqual, `No program to install: nothing to do`)
			So(ErrString(), ShouldEqualNL, `  [main:7] (func.001:14)
    senvgo
`)
		})
	})
}<commit_msg>Test exit status when no program<commit_after>package main

import (
	"testing"

	. "github.com/VonC/godbg"
	"github.com/VonC/godbg/exit"
	. "github.com/smartystreets/goconvey/convey"
)

func TestMain(t *testing.T) {

	exiter = exit.New(func(int) {})

	Convey("senvgo main installation scenario with no command", t, func() {
		SetBuffers(nil)
		main()
		So(ErrString(), ShouldEqualNL, `  [main:7] (func.001:14)
    senvgo
`)
		So(exiter.Status(), ShouldEqual, 0)

		Convey("No prg means no prgs installed", func() {
			SetBuffers(nil)
			main()
			So(OutString(), ShouldEqual, `No program to install: nothing to do`)
			So(ErrString(), ShouldEqualNL, `  [main:7] (func.001:14)
    senvgo
`)
			So(exiter.Status(), ShouldEqual, 0)
		})
	})
}
{'fraction_non_alphanumeric': 0.16385372714486637, 'fraction_numerical': 0.0189873417721519, 'mean_word_length': 4.064056939501779, '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': '858704', 'n_tokens_mistral': 605, 'n_tokens_neox': 552, 'n_words': 116}