代码拉取完成,页面将自动刷新
// Package integration performs initialization and validation for integration
// tests.
package integration
import (
"crypto/rand"
"fmt"
"io"
"os"
"github.com/ks3sdklib/aws-sdk-go/aws"
)
// Imported is a marker to ensure that this package's init() function gets
// executed.
//
// To use this package, import it and add:
//
// var _ = integration.Imported
const Imported = true
func init() {
if os.Getenv("DEBUG") != "" {
aws.DefaultConfig.LogLevel = 1
}
if os.Getenv("DEBUG_BODY") != "" {
aws.DefaultConfig.LogLevel = 1
aws.DefaultConfig.LogHTTPBody = true
}
if aws.DefaultConfig.Region == "" {
panic("AWS_REGION must be configured to run integration tests")
}
}
// UniqueID returns a unique UUID-like identifier for use in generating
// resources for integration tests.
func UniqueID() string {
uuid := make([]byte, 16)
io.ReadFull(rand.Reader, uuid)
return fmt.Sprintf("%x", uuid)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。