Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTargetDMarshalJSON (0.2 sec)

  1. internal/config/lambda/event/targetid_test.go

    		arn := testCase.tid.ToARN(testCase.region)
    
    		if arn != testCase.expectedARN {
    			t.Fatalf("test %v: ARN: expected: %v, got: %v", i+1, testCase.expectedARN, arn)
    		}
    	}
    }
    
    func TestTargetDMarshalJSON(t *testing.T) {
    	testCases := []struct {
    		tid          TargetID
    		expectedData []byte
    		expectErr    bool
    	}{
    		{TargetID{}, []byte(`":"`), false},
    		{TargetID{"1", "webhook"}, []byte(`"1:webhook"`), false},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top