func doAllForMiByUrl1(t *testing.T) {
	actual := doAllForMiByUrl()
	var expected interface{}
	expectedJson := ``
	my.FromJson(expectedJson, &expected)
	my.Test(actual, expected, t)
}
func Test_searchYoutubeByYoutubeId(t *testing.T) {
	var (
		youtubeId string

		onlyOne *YoutubeSearchResult

		onlyOne_expected *YoutubeSearchResult
	)
	onlyOne = searchYoutubeByYoutubeId(youtubeId)

	expectedJson_onlyOne := ``
	my.FromJson(expectedJson_onlyOne, &onlyOne_expected)
	my.Test(onlyOne, onlyOne_expected, t)
}
Ejemplo n.º 3
0
func Test_fileNameListToFotoList(t *testing.T) {
	my.Test(fileNameListToFotoList([]string{"10_resize.jpg", "10.jpg"}), FotoList{foto{Thumb: "10_resize.jpg", BigFoto: "10.jpg"}}, t)

}
Ejemplo n.º 4
0
func Test_fotoListByMenuItemUrl(t *testing.T) {
	my.Test(fotoListByMenuItemUrl("PerilaOograzhdenijaIzNerzhavejuwejStali"), "./Content/fotos2/PerilaOograzhdenijaIzNerzhavejuwejStali", t)

}
Ejemplo n.º 5
0
func Test_thumbFileNameToBigFileName(t *testing.T) {

	my.Test(thumbFileNameToBigFileName("10_resize.jpg"), "10.jpg", t)
}
Ejemplo n.º 6
0
func Test_isThumbFalse(t *testing.T) {

	my.Test(isThumb("10.jpg"), false, t)
}
Ejemplo n.º 7
0
func Test_isThumb(t *testing.T) {

	my.Test(isThumb("10_resize.jpg"), true, t)
}
Ejemplo n.º 8
0
func Test_photoHtmlPath(t *testing.T) {
	SetMenu()
	mi := MiByUrl("PerilaOograzhdenijaIzNerzhavejuwejStali")

	my.Test(mi.photoHtmlPath("1.jpg"), "/Content/fotos2/PerilaOograzhdenijaIzNerzhavejuwejStali/1.jpg", t)
}
Ejemplo n.º 9
0
func doAllForMiByUrl(url string, expected menuItem, t *testing.T) {
	actual := MiByUrl(url)
	my.Test(actual, expected, t)
}
Ejemplo n.º 10
0
func TestFullGalleryUrl(t *testing.T) {
	SetMenu()
	mi := MiByUrl("PerilaOograzhdenijaIzNerzhavejuwejStali")
	my.Test(galleryUrl(&mi), "/Kovka/Gallereja/PerilaOograzhdenijaIzNerzhavejuwejStali", t)

}
Ejemplo n.º 11
0
func doAllFor_fullHtmlUrl(mi *menuItem, expectedFullHtmlUrl string, t *testing.T) {
	actual := fullHtmlUrl(mi)
	my.Test(actual, expectedFullHtmlUrl, t)
}
Ejemplo n.º 12
0
func doAllForAddAlt(mi menuItem, expectedAlt string, t *testing.T) {
	miAddAlt(&mi)
	actual := mi.alt

	my.Test(actual, expectedAlt, t)
}
Ejemplo n.º 13
0
func Test_sortFileNames(t *testing.T) {
	fileNames := []string{"10_resize.jpg", "10.jpg", "1_resize.jpg", "1.jpg"}
	expected := []string{"1_resize.jpg", "1.jpg", "10_resize.jpg", "10.jpg"}
	my.Test(sortFileNames(fileNames), expected, t)

}
Ejemplo n.º 14
0
func Test_myMethod1(t *testing.T) {
	actual := myMethod()
	expected := ""
	my.Test(actual, expected, t)
}