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)
}
Example #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)

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

}
Example #5
0
func Test_thumbFileNameToBigFileName(t *testing.T) {

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

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

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

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

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

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

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