Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestS3EncodeName (0.1 sec)

  1. cmd/api-utils_test.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"fmt"
    	"testing"
    )
    
    func TestS3EncodeName(t *testing.T) {
    	testCases := []struct {
    		inputText, encodingType, expectedOutput string
    	}{
    		{"a b", "", "a b"},
    		{"a b", "url", "a+b"},
    		{"p- ", "url", "p-+"},
    		{"p-%", "url", "p-%25"},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top