Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/handler-utils_test.go

    			metadata:   nil,
    			shouldFail: true,
    		},
    	}
    
    	// Validate if the extracting headers.
    	for i, testCase := range testCases {
    		metadata := make(map[string]string)
    		err := extractMetadataFromMime(context.Background(), textproto.MIMEHeader(testCase.header), metadata)
    		if err != nil && !testCase.shouldFail {
    			t.Fatalf("Test %d failed to extract metadata: %v", i+1, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top