PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
package govalidator import ( "reflect" "testing" ) func TestContains(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected bool }{ {"abacada", "", true}, {"abacada", "ritir", false}, {"abacada", "a", true}, {"abacada", "aca", true}, } for _, test := range tests { actual := Contains(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected Contains(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestMatches(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected bool }{ {"123456789", "[0-9]+", true}, {"abacada", "cab$", false}, {"111222333", "((111|222|333)+)+", true}, {"abacaba", "((123+]", false}, } for _, test := range tests { actual := Matches(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected Matches(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestLeftTrim(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected string }{ {" \r\n\tfoo \r\n\t ", "", "foo \r\n\t "}, {"010100201000", "01", "201000"}, } for _, test := range tests { actual := LeftTrim(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected LeftTrim(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestRightTrim(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected string }{ {" \r\n\tfoo \r\n\t ", "", " \r\n\tfoo"}, {"010100201000", "01", "0101002"}, } for _, test := range tests { actual := RightTrim(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected RightTrim(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestTrim(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected string }{ {" \r\n\tfoo \r\n\t ", "", "foo"}, {"010100201000", "01", "2"}, {"1234567890987654321", "1-8", "909"}, } for _, test := range tests { actual := Trim(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected Trim(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestWhiteList(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected string }{ {"abcdef", "abc", "abc"}, {"aaaaaaaaaabbbbbbbbbb", "abc", "aaaaaaaaaabbbbbbbbbb"}, {"a1b2c3", "abc", "abc"}, {" ", "abc", ""}, {"a3a43a5a4a3a2a23a4a5a4a3a4", "a-z", "aaaaaaaaaaaa"}, } for _, test := range tests { actual := WhiteList(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected WhiteList(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestBlackList(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string expected string }{ {"abcdef", "abc", "def"}, {"aaaaaaaaaabbbbbbbbbb", "abc", ""}, {"a1b2c3", "abc", "123"}, {" ", "abc", " "}, {"a3a43a5a4a3a2a23a4a5a4a3a4", "a-z", "34354322345434"}, } for _, test := range tests { actual := BlackList(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected BlackList(%q,%q) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestStripLow(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 bool expected string }{ {"foo\x00", false, "foo"}, {"\x7Ffoo\x02", false, "foo"}, {"\x01\x09", false, ""}, {"foo\x0A\x0D", false, "foo"}, {"perch\u00e9", false, "perch\u00e9"}, {"\u20ac", false, "\u20ac"}, {"\u2206\x0A", false, "\u2206"}, {"foo\x0A\x0D", true, "foo\x0A\x0D"}, {"\x03foo\x0A\x0D", true, "foo\x0A\x0D"}, } for _, test := range tests { actual := StripLow(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected StripLow(%q,%t) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestReplacePattern(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string param3 string expected string }{ {"ab123ba", "[0-9]+", "aca", "abacaba"}, {"abacaba", "[0-9]+", "aca", "abacaba"}, {"httpftp://github.comio", "(ftp|io)", "", "http://github.com"}, {"aaaaaaaaaa", "a", "", ""}, {"http123123ftp://git534543hub.comio", "(ftp|io|[0-9]+)", "", "http://github.com"}, } for _, test := range tests { actual := ReplacePattern(test.param1, test.param2, test.param3) if actual != test.expected { t.Errorf("Expected ReplacePattern(%q,%q,%q) to be %v, got %v", test.param1, test.param2, test.param3, test.expected, actual) } } } func TestEscape(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {`foo&bar`, "<img alt="foo&bar">"}, } for _, test := range tests { actual := Escape(test.param) if actual != test.expected { t.Errorf("Expected Escape(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestUnderscoreToCamelCase(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {"a_b_c", "ABC"}, {"my_func", "MyFunc"}, {"1ab_cd", "1abCd"}, } for _, test := range tests { actual := UnderscoreToCamelCase(test.param) if actual != test.expected { t.Errorf("Expected UnderscoreToCamelCase(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestCamelCaseToUnderscore(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {"MyFunc", "my_func"}, {"ABC", "a_b_c"}, {"1B", "1_b"}, {"foo_bar", "foo_bar"}, {"FooV2Bar", "foo_v2_bar"}, } for _, test := range tests { actual := CamelCaseToUnderscore(test.param) if actual != test.expected { t.Errorf("Expected CamelCaseToUnderscore(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestReverse(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {"abc", "cba"}, {"カタカナ", "ナカタカ"}, } for _, test := range tests { actual := Reverse(test.param) if actual != test.expected { t.Errorf("Expected Reverse(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestGetLines(t *testing.T) { t.Parallel() var tests = []struct { param string expected []string }{ {"abc", []string{"abc"}}, {"a\nb\nc", []string{"a", "b", "c"}}, } for _, test := range tests { actual := GetLines(test.param) if !reflect.DeepEqual(actual, test.expected) { t.Errorf("Expected GetLines(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestGetLine(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 int expected string }{ {"abc", 0, "abc"}, {"a\nb\nc", 0, "a"}, {"abc", -1, ""}, {"abacaba\n", 1, ""}, {"abc", 3, ""}, } for _, test := range tests { actual, _ := GetLine(test.param1, test.param2) if actual != test.expected { t.Errorf("Expected GetLine(%q, %d) to be %v, got %v", test.param1, test.param2, test.expected, actual) } } } func TestRemoveTags(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {"abc", "abc"}, {"", ""}, {"

Text

", "Text"}, {`Link`, "Link"}, } for _, test := range tests { actual := RemoveTags(test.param) if actual != test.expected { t.Errorf("Expected RemoveTags(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestSafeFileName(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {"abc", "abc"}, {"123456789 '_-?ASDF@£$%£%^é.html", "123456789-asdf.html"}, {"ReadMe.md", "readme.md"}, {"file:///c:/test.go", "test.go"}, {"../../../Hello World!.txt", "hello-world.txt"}, } for _, test := range tests { actual := SafeFileName(test.param) if actual != test.expected { t.Errorf("Expected SafeFileName(%q) to be %v, got %v", test.param, test.expected, actual) } } } func TestNormalizeEmail(t *testing.T) { t.Parallel() var tests = []struct { param string expected string }{ {`test@me.com`, `test@me.com`}, {`some.name@gmail.com`, `somename@gmail.com`}, {`some.name@googlemail.com`, `somename@gmail.com`}, {`some.name+extension@gmail.com`, `somename@gmail.com`}, {`some.name+extension@googlemail.com`, `somename@gmail.com`}, {`some.name.middlename+extension@gmail.com`, `somenamemiddlename@gmail.com`}, {`some.name.middlename+extension@googlemail.com`, `somenamemiddlename@gmail.com`}, {`some.name.midd.lena.me.+extension@gmail.com`, `somenamemiddlename@gmail.com`}, {`some.name.midd.lena.me.+extension@googlemail.com`, `somenamemiddlename@gmail.com`}, {`some.name+extension@unknown.com`, `some.name+extension@unknown.com`}, // TODO: {`hans@m端ller.com`, `hans@m端ller.com`}, {`hans`, ``}, } for _, test := range tests { actual, err := NormalizeEmail(test.param) if actual != test.expected { t.Errorf("Expected NormalizeEmail(%q) to be %v, got %v, err %v", test.param, test.expected, actual, err) } } } func TestTruncate(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 int param3 string expected string }{ {`Lorem ipsum dolor sit amet, consectetur adipiscing elit.`, 25, `...`, `Lorem ipsum dolor sit amet...`}, {`Measuring programming progress by lines of code is like measuring aircraft building progress by weight.`, 35, ` new born babies!`, `Measuring programming progress by new born babies!`}, {`Testestestestestestestestestest testestestestestestestestest`, 7, `...`, `Testestestestestestestestestest...`}, {`Testing`, 7, `...`, `Testing`}, } for _, test := range tests { actual := Truncate(test.param1, test.param2, test.param3) if actual != test.expected { t.Errorf("Expected Truncate(%q, %d, %q) to be %v, got %v", test.param1, test.param2, test.param3, test.expected, actual) } } } func TestPadLeft(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string param3 int expected string }{ {"こんにちは", "xyz", 12, "xyzxyzxこんにちは"}, {"こんにちは", "xyz", 11, "xyzxyzこんにちは"}, {"abc", "x", 5, "xxabc"}, {"abc", "xyz", 5, "xyabc"}, {"abcde", "xyz", 5, "abcde"}, {"abcde", "xyz", 4, "abcde"}, } for _, test := range tests { actual := PadLeft(test.param1, test.param2, test.param3) if actual != test.expected { t.Errorf("Expected PadLeft(%q,%q,%q) to be %v, got %v", test.param1, test.param2, test.param3, test.expected, actual) } } } func TestPadRight(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string param3 int expected string }{ {"こんにちは", "xyz", 12, "こんにちはxyzxyzx"}, {"こんにちは", "xyz", 11, "こんにちはxyzxyz"}, {"abc", "x", 5, "abcxx"}, {"abc", "xyz", 5, "abcxy"}, {"abcde", "xyz", 5, "abcde"}, {"abcde", "xyz", 4, "abcde"}, } for _, test := range tests { actual := PadRight(test.param1, test.param2, test.param3) if actual != test.expected { t.Errorf("Expected PadRight(%q,%q,%q) to be %v, got %v", test.param1, test.param2, test.param3, test.expected, actual) } } } func TestPadBoth(t *testing.T) { t.Parallel() var tests = []struct { param1 string param2 string param3 int expected string }{ {"こんにちは", "xyz", 12, "xyzこんにちはxyzx"}, {"こんにちは", "xyz", 11, "xyzこんにちはxyz"}, {"abc", "x", 5, "xabcx"}, {"abc", "xyz", 5, "xabcx"}, {"abcde", "xyz", 5, "abcde"}, {"abcde", "xyz", 4, "abcde"}, } for _, test := range tests { actual := PadBoth(test.param1, test.param2, test.param3) if actual != test.expected { t.Errorf("Expected PadBoth(%q,%q,%q) to be %v, got %v", test.param1, test.param2, test.param3, test.expected, actual) } } }