Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConsumeToken (0.54 sec)

  1. src/mime/mediatype_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package mime
    
    import (
    	"reflect"
    	"strings"
    	"testing"
    )
    
    func TestConsumeToken(t *testing.T) {
    	tests := [...][3]string{
    		{"foo bar", "foo", " bar"},
    		{"bar", "bar", ""},
    		{"", "", ""},
    		{" foo", "", " foo"},
    	}
    	for _, test := range tests {
    		token, rest := consumeToken(test[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
Back to top