[ 
https://issues.apache.org/jira/browse/BEAM-14440?focusedWorklogId=771069&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-771069
 ]

ASF GitHub Bot logged work on BEAM-14440:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/May/22 23:58
            Start Date: 16/May/22 23:58
    Worklog Time Spent: 10m 
      Work Description: damccorm commented on code in PR #17587:
URL: https://github.com/apache/beam/pull/17587#discussion_r874246815


##########
sdks/go/pkg/beam/core/graph/coder/stringutf8_test.go:
##########
@@ -120,3 +120,26 @@ func TestEncodeDecodeStringUTF8LP(t *testing.T) {
                })
        }
 }
+
+func FuzzEncodeDecodeStringUTF8LP(f *testing.F) {

Review Comment:
   I'm actually curious on this one as well - I'd initially assumed there were 
inputs that should fail when encoding, but I can't think of any. Are there 
inputs like that? If so, are there few enough that we can special case them?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 771069)
    Time Spent: 3h 20m  (was: 3h 10m)

> Add coder fuzz tests to the Go SDK
> ----------------------------------
>
>                 Key: BEAM-14440
>                 URL: https://issues.apache.org/jira/browse/BEAM-14440
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go
>            Reporter: Jack McCluskey
>            Assignee: Jack McCluskey
>            Priority: P3
>             Fix For: 2.40.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> With the Go SDK now on minimum Go version 1.18, fuzz tests can be added to 
> the test corpus. The coder package is a good place to start with this, as we 
> handle primitives that can be directly generated by Go's native fuzz testing 
> and can check that we are getting the same values out after encoding and 
> decoding. 
>  
> An overview of potential fuzz testing in the Beam Go SDK can be found here: 
> https://docs.google.com/document/d/1VHe5xFHjsmgOj2upH2k4zT90S5SCPtGYSJNcvPj5fig/edit?usp=sharing



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to