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)
}
Esempio 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)

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

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

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

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

	my.Test(isThumb("10_resize.jpg"), true, t)
}
Esempio 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)
}
Esempio n. 9
0
func doAllForMiByUrl(url string, expected menuItem, t *testing.T) {
	actual := MiByUrl(url)
	my.Test(actual, expected, t)
}
Esempio n. 10
0
func TestFullGalleryUrl(t *testing.T) {
	SetMenu()
	mi := MiByUrl("PerilaOograzhdenijaIzNerzhavejuwejStali")
	my.Test(galleryUrl(&mi), "/Kovka/Gallereja/PerilaOograzhdenijaIzNerzhavejuwejStali", t)

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

	my.Test(actual, expectedAlt, t)
}
Esempio 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)

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