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) }
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) }
func Test_fotoListByMenuItemUrl(t *testing.T) { my.Test(fotoListByMenuItemUrl("PerilaOograzhdenijaIzNerzhavejuwejStali"), "./Content/fotos2/PerilaOograzhdenijaIzNerzhavejuwejStali", t) }
func Test_thumbFileNameToBigFileName(t *testing.T) { my.Test(thumbFileNameToBigFileName("10_resize.jpg"), "10.jpg", t) }
func Test_isThumbFalse(t *testing.T) { my.Test(isThumb("10.jpg"), false, t) }
func Test_isThumb(t *testing.T) { my.Test(isThumb("10_resize.jpg"), true, t) }
func Test_photoHtmlPath(t *testing.T) { SetMenu() mi := MiByUrl("PerilaOograzhdenijaIzNerzhavejuwejStali") my.Test(mi.photoHtmlPath("1.jpg"), "/Content/fotos2/PerilaOograzhdenijaIzNerzhavejuwejStali/1.jpg", t) }
func doAllForMiByUrl(url string, expected menuItem, t *testing.T) { actual := MiByUrl(url) my.Test(actual, expected, t) }
func TestFullGalleryUrl(t *testing.T) { SetMenu() mi := MiByUrl("PerilaOograzhdenijaIzNerzhavejuwejStali") my.Test(galleryUrl(&mi), "/Kovka/Gallereja/PerilaOograzhdenijaIzNerzhavejuwejStali", t) }
func doAllFor_fullHtmlUrl(mi *menuItem, expectedFullHtmlUrl string, t *testing.T) { actual := fullHtmlUrl(mi) my.Test(actual, expectedFullHtmlUrl, t) }
func doAllForAddAlt(mi menuItem, expectedAlt string, t *testing.T) { miAddAlt(&mi) actual := mi.alt my.Test(actual, expectedAlt, t) }
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) }