Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestURLFromFilePath (0.14 sec)

  1. src/cmd/go/internal/web/url_test.go

    				}
    			}
    
    			if path != tc.filePath || tc.wantErr != "" {
    				t.Fatalf("urlToFilePath(%v) = %q, <nil>; want %q, %s", u, path, tc.filePath, tc.wantErr)
    			}
    		})
    	}
    }
    
    func TestURLFromFilePath(t *testing.T) {
    	for _, tc := range urlTests {
    		if tc.filePath == "" {
    			continue
    		}
    		tc := tc
    
    		t.Run(tc.filePath, func(t *testing.T) {
    			u, err := urlFromFilePath(tc.filePath)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 1.7K bytes
    - Viewed (0)
Back to top