func checkLocContents(t *testing.T, loc *location.L,
	testID, src, note, content string, hasContent bool, idx int64) {
	t.Helper()

	testhelper.DiffString(t, "loc: "+testID, "source", loc.Source(), src)
	testhelper.DiffInt64(t, "loc: "+testID, "idx", loc.Idx(), idx)
	testhelper.DiffString(t, "loc: "+testID, "note", loc.Note(), note)
	c, hc := loc.Content()
	testhelper.DiffBool(t, "loc: "+testID, "has content", hc, hasContent)
	testhelper.DiffString(t, "loc: "+testID, "content", c, content)
}
// checkLocContents confirms that the string is as expected and prints an
// error if not
checkLocContents confirms that the string is as expected and prints an
error if not
// checkLocContents confirms that the string is as expected and prints an // error if not
func checkLocContents(t *testing.T, loc *location.L,
	testID, src, note, content string, hasContent bool, idx int64) {
	t.Helper()
	testhelper.DiffString(t, "loc: "+testID, "source", loc.Source(), src)
	testhelper.DiffInt64(t, "loc: "+testID, "idx", loc.Idx(), idx)
	testhelper.DiffString(t, "loc: "+testID, "note", loc.Note(), note)
	c, hc := loc.Content()
	testhelper.DiffBool(t, "loc: "+testID, "has content", hc, hasContent)
	testhelper.DiffString(t, "loc: "+testID, "content", c, content)
}
func checkLocContents ( t * testing . T , loc * location . L , testID , src , note , content string , hasContent bool , idx int64 ) { t . Helper ( ) testhelper . DiffString ( t , " " + testID , " " , loc . Source ( ) , src ) testhelper . DiffInt64 ( t , " " + testID , " " , loc . Idx ( ) , idx ) testhelper . DiffString ( t , " " + testID , " " , loc . Note ( ) , note ) c , hc := loc . Content ( ) testhelper . DiffBool ( t , " " + testID , " " , hc , hasContent ) testhelper . DiffString ( t , " " + testID , " " , c , content ) }
checkLocContents confirms that the string is as expected and prints an
error if not
checkLocContents confirms that the string is as expected and prints an error if not