Test output:
% go test -v ./aws/internal/service/datasync
=== RUN TestSubdirectoryFromLocationURI
=== RUN TestSubdirectoryFromLocationURI/empty_URI
=== RUN TestSubdirectoryFromLocationURI/invalid_URI_scheme
=== RUN TestSubdirectoryFromLocationURI/S3_bucket_URI_no_bucket_name_(1)
=== RUN TestSubdirectoryFromLocationURI/S3_bucket_URI_no_bucket_name_(2)
=== RUN TestSubdirectoryFromLocationURI/S3_bucket_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/S3_bucket_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/S3_bucket_URI_two_levels
=== RUN TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_two_levels
=== RUN TestSubdirectoryFromLocationURI/EFS_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/EFS_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/EFS_URI_two_levels
=== RUN TestSubdirectoryFromLocationURI/NFS_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/NFS_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/NFS_URI_two_levels
=== RUN TestSubdirectoryFromLocationURI/SMB_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/SMB_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/SMB_URI_two_levels
=== RUN TestSubdirectoryFromLocationURI/FSx_Windows_URI_top_level
=== RUN TestSubdirectoryFromLocationURI/FSx_Windows_URI_one_level
=== RUN TestSubdirectoryFromLocationURI/FSx_Windows_URI_two_levels
--- PASS: TestSubdirectoryFromLocationURI (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/empty_URI (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/invalid_URI_scheme (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_bucket_URI_no_bucket_name_(1) (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_bucket_URI_no_bucket_name_(2) (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_bucket_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_bucket_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_bucket_URI_two_levels (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/S3_Outposts_ARN_URI_two_levels (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/EFS_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/EFS_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/EFS_URI_two_levels (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/NFS_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/NFS_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/NFS_URI_two_levels (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/SMB_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/SMB_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/SMB_URI_two_levels (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/FSx_Windows_URI_top_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/FSx_Windows_URI_one_level (0.00s)
--- PASS: TestSubdirectoryFromLocationURI/FSx_Windows_URI_two_levels (0.00s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws/internal/service/datasync 3.695s