repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_blob_container_legal_hold_test.go | provider/pkg/resources/customresources/custom_blob_container_legal_hold_test.go | package customresources
import (
"context"
"encoding/json"
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
// Verbatim from https://learn.microsoft.com/en-u... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_storage_test.go | provider/pkg/resources/customresources/custom_storage_test.go | // Copyright 2016-2023, Pulumi Corporation.
package customresources
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestParseBlobIdProperties(t *testing.T) {
id := "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.Storage/storageAccounts/mysa/blobServices... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_pim.go | provider/pkg/resources/customresources/custom_pim.go | package customresources
import (
"cmp"
"context"
"fmt"
"slices"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/logging"
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_roleassignment.go | provider/pkg/resources/customresources/custom_roleassignment.go | // Copyright 2025, Pulumi Corporation. All rights reserved.
package customresources
import (
"context"
"fmt"
"regexp"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure"
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_keyvault_accesspolicy_test.go | provider/pkg/resources/customresources/custom_keyvault_accesspolicy_test.go | package customresources
import (
"testing"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestParsePathParams(t *testing.T) {
t.Run("Valid legacy ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_pim_eligibility.go | provider/pkg/resources/customresources/custom_pim_eligibility.go | // Copyright 2025, Pulumi Corporation. All rights reserved.
package customresources
import (
"context"
"encoding/json"
"fmt"
"strings"
"time"
"github.com/pkg/errors"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"gith... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_webapp_delete_test.go | provider/pkg/resources/customresources/custom_webapp_delete_test.go | package customresources
import (
"context"
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/azure"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider/crud"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"githu... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_storage.go | provider/pkg/resources/customresources/custom_storage.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package customresources
import (
"regexp"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
)
// Resource property names.
const (
staticWebsitePath = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provid... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/resources/customresources/custom_keyvault_accesspolicy.go | provider/pkg/resources/customresources/custom_keyvault_accesspolicy.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package customresources
import (
"context"
"errors"
"fmt"
"regexp"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armk... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/debug/debug.go | provider/pkg/debug/debug.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package debug
import "fmt"
// TODO This is a hack. Consider using glog or another logging library instead.
// Debug determines if debug logging is turned on
var Debug *bool
// Log logs debug info to stdout if debug.Debug is set to true
func Log(format st... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/responseBodyToSdkOutputs_test.go | provider/pkg/convert/responseBodyToSdkOutputs_test.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/stretchr/testify/assert"
"pgregory.net/rapid"
)
func TestResponseBodyToSdkOutputs(t *testing.T) {
t.Run("nil body returns empty map", func(t *testing.T) {... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/isDefaultResponse_test.go | provider/pkg/convert/isDefaultResponse_test.go | package convert
import (
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/stretchr/testify/assert"
)
func TestIsDefaultResponseTrue(t *testing.T) {
c := getMockConverter()
response := map[string]interface{}{
"p1": true,
"p2": false, // false boo... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/sdkInputsToRequestBody_test.go | provider/pkg/convert/sdkInputsToRequestBody_test.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"bufio"
"bytes"
"fmt"
"os"
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/logging"
"github.com/stretchr/testify/assert"
"pgregory.net/rapid"
)
func TestSdkInputs... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/responseBodyToSdkOutputs.go | provider/pkg/convert/responseBodyToSdkOutputs.go | package convert
import (
"reflect"
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
// ResponseBodyToSdkOutputs converts a JSON request- or response body to the SDK shape.
func (k *SdkShapeConverter) ResponseBodyToSdkOutputs(props map[string]resources.AzureAPIProperty,
response map[s... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/responseToSdkInputs.go | provider/pkg/convert/responseToSdkInputs.go | package convert
import (
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
// ResponseToSdkInputs calculates a map of input values that would produce the given resource path and
// response. This is useful when we need to import an existing resource based on its current properties.
func... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/previewOutputs.go | provider/pkg/convert/previewOutputs.go | package convert
import (
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
)
const TypeAny = "pulumi.json#/Any"
// PreviewOutputs calculates a map of outputs at the time of initial resource creation. It takes the provided resource
// ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/previewOutputs_test.go | provider/pkg/convert/previewOutputs_test.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
"github.com/stretchr/testify/assert"
)
func TestPreviewOutputs(t *testing.T) {
type previewTestCase struct {
in... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/propGenerators_test.go | provider/pkg/convert/propGenerators_test.go | package convert
import (
"pgregory.net/rapid"
)
func propSimpleValue() *rapid.Generator[interface{}] {
return rapid.OneOf[interface{}](
rapid.String().AsAny(),
rapid.Int().AsAny(),
rapid.Float64().AsAny(),
rapid.Bool().AsAny(),
)
}
// Non-zero length map of simple values
func propNonRecursiveMap() *rapid.... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/isDefaultResponse.go | provider/pkg/convert/isDefaultResponse.go | package convert
import (
"reflect"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
// IsDefaultResponse returns true if the shape of the HTTP response matches the expected shape.
// The following comparison rules apply:
// - response is converted to the SDK shape of inputs (so, the structure ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/sdkOutputsToSdkInputs.go | provider/pkg/convert/sdkOutputsToSdkInputs.go | package convert
import (
"reflect"
"sort"
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
// SdkOutputsToSdkInputs converts resource outputs (not a response body, but already valid outputs) to corresponding
// resource inputs, excluding the read-only properties from the map.
func (k... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/sdkOutputsToSDKInputs_test.go | provider/pkg/convert/sdkOutputsToSDKInputs_test.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/stretchr/testify/assert"
"pgregory.net/rapid"
)
func TestSdkOutputsToSdkInputs(t *testing.T) {
t.Run("nil outputs returns nil", func(t *testing.T) {
act... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/sdkInputsToRequestBody.go | provider/pkg/convert/sdkInputsToRequestBody.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"fmt"
"reflect"
"sort"
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi/sdk/v3/go/common/util/logging"
)
// SdkInputsToRequestBody converts a map of SDK properties to JSON request body to ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/convertTypedObjects.go | provider/pkg/convert/convertTypedObjects.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
// convertTypedObject is a callback that performs some kind of arbitrary conversion of an object for which we know its property types.
// Returning nil indicates that the given va... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/responseToSdkInputs_test.go | provider/pkg/convert/responseToSdkInputs_test.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/stretchr/testify/assert"
"pgregory.net/rapid"
)
func TestResponseToSdkInputsPathParams(t *testing.T) {
t.Run("simple", func(t *testing.T) {
actual := te... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/convert/sdkShapeConverter.go | provider/pkg/convert/sdkShapeConverter.go | // Copyright 2016-2020, Pulumi Corporation.
package convert
import (
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
)
const body = "body"
// SdkShapeConverter providers functions to convert between HTTP request/response shapes and
// Pulumi SDK shapes (with flattening, renaming, etc.).
type SdkS... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/additionalInvokes.go | provider/pkg/openapi/additionalInvokes.go | package openapi
import (
"strings"
"github.com/go-openapi/spec"
)
// We only create getFoo or listFoo functions in combination with a Foo resource. We don't turn all
// GET endpoints to functions. The assumption is that most of those aren't very useful. If we do want
// to include specific ones, we add them here. ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/versioner_test.go | provider/pkg/openapi/versioner_test.go | // Copyright 2016-2020, Pulumi Corporation.
package openapi
import (
"testing"
"github.com/go-openapi/spec"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/collections"
"github.com/stretchr/testify/assert"
)
// Test cases:
// - Res 1 defined across all API versions
// - Res 2 defined in two API versi... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/resolver.go | provider/pkg/openapi/resolver.go | // Copyright 2016-2020, Pulumi Corporation.
package openapi
import (
"fmt"
"net/url"
"reflect"
"regexp"
"github.com/go-openapi/jsonreference"
"github.com/go-openapi/spec"
"github.com/go-openapi/swag"
"github.com/pkg/errors"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/util"
)
// ReferenceContext ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/versioner.go | provider/pkg/openapi/versioner.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package openapi
import (
"fmt"
"io"
"log"
"os"
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/collections"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/paths"
"github.com/segmentio/encoding/json"
"gopkg.in/yaml.... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/apiVersion_test.go | provider/pkg/openapi/apiVersion_test.go | package openapi
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestApiVersionToDate(t *testing.T) {
t.Run("simple", func(t *testing.T) {
date, err := ApiVersionToDate("2020-01-01")
assert.NoError(t, err)
actual := date.Format("2006-01-02")
assert.Equal(t, "2020-01-01", actual)
})
t.Run(... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/discover.go | provider/pkg/openapi/discover.go | // Copyright 2016-2020, Pulumi Corporation.
package openapi
import (
"fmt"
"path/filepath"
"regexp"
"sort"
"strings"
"time"
"github.com/go-openapi/spec"
"github.com/pkg/errors"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/defaults"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/op... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/discover_test.go | provider/pkg/openapi/discover_test.go | package openapi
import (
"fmt"
"net/http"
"testing"
"github.com/go-openapi/spec"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/defaults"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/resources/customresources"
"github.... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/defaults/defaultResourcesState_test.go | provider/pkg/openapi/defaults/defaultResourcesState_test.go | package defaults
import (
"testing"
"github.com/stretchr/testify/assert"
)
// Test GetDefaultResourceState returns expected values for a given resource type.
func TestNotFound(t *testing.T) {
actual := GetDefaultResourceState("notapath", "2020-01-01")
assert.Nil(t, actual)
}
func TestSkipDelete(t *testing.T) {
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/defaults/defaultResourceStateConvert_test.go | provider/pkg/openapi/defaults/defaultResourceStateConvert_test.go | package defaults_test
import (
"os"
"path/filepath"
"regexp"
"strings"
"testing"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/convert"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/defaults"
"github.com/pulumi/pulumi-a... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/defaults/defaultResourcesState.go | provider/pkg/openapi/defaults/defaultResourcesState.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package defaults
import (
"fmt"
"reflect"
"sort"
"strings"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/openapi/paths"
)
// defaultResourcesStateRaw is a map non-normalized paths. It's handy to have paths as they are in the Open API spec's
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/pkg/openapi/paths/normalisePath.go | provider/pkg/openapi/paths/normalisePath.go | package paths
import "strings"
// Sometimes, Azure resources change the API paths between API versions. Most of the time, we can detect that based
// on operation names. However, in a number of cases, the operation names change at the same time.
// legacyPathMappings provides a manual map to help our codegen discover... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/cmd/tools/regressed_versions.go | provider/cmd/tools/regressed_versions.go | package main
import (
"fmt"
"io/ioutil"
"os"
"sort"
"strings"
"gopkg.in/yaml.v3"
)
// ModuleData represents one spec file entry like
//
// Aad:
// tracking: "2022-12-01"
type ModuleData struct {
Tracking string `yaml:"tracking,omitempty"`
}
func main() {
if len(os.Args) != 3 {
fmt.Println("Usage: progra... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/cmd/pulumi-resource-azure-native/main.go | provider/cmd/pulumi-resource-azure-native/main.go | // Copyright 2016-2020, Pulumi Corporation.
package main
import (
_ "embed"
"reflect"
"unsafe"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/provider"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/version"
)
var providerName = "azure-native"
//go:embed metadata-compact.json
var azureApiResou... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/provider/cmd/pulumi-gen-azure-native/main.go | provider/cmd/pulumi-gen-azure-native/main.go | // Copyright 2016-2020, Pulumi Corporation.
package main
import (
"bytes"
"fmt"
"os"
"path"
"path/filepath"
"text/template"
"github.com/segmentio/encoding/json"
"github.com/pkg/errors"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/debug"
"github.com/pulumi/pulumi-azure-native/v2/provider/pkg/gen... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_py_test.go | examples/examples_py_test.go | // Copyright 2016-2020, Pulumi Corporation. All rights reserved.
//go:build python || all
// +build python all
package examples
import (
"os"
"path/filepath"
"strings"
"testing"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_dotnet_test.go | examples/examples_dotnet_test.go | // Copyright 2016-2020, Pulumi Corporation. All rights reserved.
//go:build dotnet || all
// +build dotnet all
package examples
import (
"os"
"path/filepath"
"testing"
pexamples "github.com/pulumi/examples/misc/test/definitions"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
"github.com/stretchr/testif... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_test.go | examples/examples_test.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package examples
import (
"fmt"
"os"
"path/filepath"
"testing"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)
const pulumiExamplesPath = "../p-examples"
func getLocation(t *testing.T) string {
azureLocation := os.Getenv("ARM_LOCATION")
if... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_go_sdk_test.go | examples/examples_go_sdk_test.go | // Copyright 2016-2020, Pulumi Corporation. All rights reserved.
//go:build go || all
// +build go all
package examples
import (
"encoding/json"
"fmt"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"testing"
"github.com/stretchr/testify/require"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)
co... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_nodejs_keyvault_test.go | examples/examples_nodejs_keyvault_test.go | // Copyright 2016-2020, Pulumi Corporation. All rights reserved.
//go:build nodejs || all
package examples
import (
"os"
"path/filepath"
"testing"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)
func TestAccKeyVaultTs(t *testing.T) {
test := getJSBaseOptions(t).
With(integration.ProgramTestOptions{
... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/examples_nodejs_test.go | examples/examples_nodejs_test.go | // Copyright 2016-2020, Pulumi Corporation. All rights reserved.
//go:build nodejs || all
package examples
import (
"context"
"encoding/json"
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
"github.com/pulumi/providertest/pulumitest"
"github.com/pulumi/providertest/pulumitest/opttest"
"github.com/pulum... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-clientconfig/main.go | examples/azure-native-sdk-v2/go-clientconfig/main.go | // Copyright 2022, Pulumi Corporation. All rights reserved.
package main
import (
"fmt"
"github.com/pulumi/pulumi-azure-native-sdk/authorization/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
config, err := authorization.GetClientConfig(ctx)
if ... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-azure-in-azure/main.go | examples/azure-native-sdk-v2/go-azure-in-azure/main.go | package main
import (
"fmt"
"os"
"os/exec"
"github.com/pulumi/pulumi-azure-native-sdk/authorization/v3"
"github.com/pulumi/pulumi-azure-native-sdk/compute/v3"
"github.com/pulumi/pulumi-azure-native-sdk/managedidentity/v3"
"github.com/pulumi/pulumi-azure-native-sdk/network/v3"
"github.com/pulumi/pulumi-azure-n... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-simple/main.go | examples/azure-native-sdk-v2/go-simple/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
resources "github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) er... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-function-scm-ftp-deletion/main.go | examples/azure-native-sdk-v2/go-function-scm-ftp-deletion/main.go | package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
web "github.com/pulumi/pulumi-azure-native-sdk/web/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
rg, err := resou... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-generic-resource/main.go | examples/azure-native-sdk-v2/go-generic-resource/main.go | // Copyright 2025, Pulumi Corporation. All rights reserved.
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create an Azure Resource Group
resourceGroup, err := resources... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-aks/k8sVersion.go | examples/azure-native-sdk-v2/go-aks/k8sVersion.go | package main
const k8sVersion = "1.32.9"
| go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-aks/main.go | examples/azure-native-sdk-v2/go-aks/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
"encoding/base64"
"time"
"github.com/pulumi/pulumi-azure-native-sdk/containerservice/v3"
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi-ra... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-aks/step3/main.go | examples/azure-native-sdk-v2/go-aks/step3/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
"encoding/base64"
"github.com/pulumi/pulumi-azure-native-sdk/containerservice/v3"
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
"github.com/pulumi/pulumi-random/sdk... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-aks/step2/k8sVersion.go | examples/azure-native-sdk-v2/go-aks/step2/k8sVersion.go | package main
const k8sVersion = "1.33.5"
| go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-user-assigned-identity/main.go | examples/azure-native-sdk-v2/go-user-assigned-identity/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
managedidentity "github.com/pulumi/pulumi-azure-native-sdk/managedidentity/v3"
resources "github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
"github.com/pulumi/pul... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-servicebus-recreate/step1/main.go | examples/azure-native-sdk-v2/go-servicebus-recreate/step1/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi-azure-native-sdk/servicebus/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Creat... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/examples/azure-native-sdk-v2/go-servicebus-recreate/step2/main.go | examples/azure-native-sdk-v2/go-servicebus-recreate/step2/main.go | // Copyright 2021, Pulumi Corporation. All rights reserved.
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/resources/v3"
"github.com/pulumi/pulumi-azure-native-sdk/servicebus/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Creat... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
pulumi/pulumi-azure-native | https://github.com/pulumi/pulumi-azure-native/blob/1f14b038c133f406184984d9980dfcacb7141599/versions/tools/compare_major_versions.go | versions/tools/compare_major_versions.go | // Copyright 2025, Pulumi Corporation.
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"path/filepath"
"sort"
"strings"
"gopkg.in/yaml.v3"
)
// ResourceInfo represents the common structure for each resource
type ResourceInfo struct {
ApiVersion string `yaml:"ApiVersion"`
ResourceUri string `yaml:... | go | Apache-2.0 | 1f14b038c133f406184984d9980dfcacb7141599 | 2026-01-07T09:42:26.479506Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/verify.go | pkg/hfdownloader/verify.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"os"
"strings"
)
// verifySHA256 computes the SHA256 of a file and compares it to expected.
func verifySHA256(path string, expected string) error {
f, err := os.Open(path)
if err !... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/plan.go | pkg/hfdownloader/plan.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"context"
"net/http"
"path/filepath"
"strings"
"time"
)
// PlanItem represents a single file in the download plan.
type PlanItem struct {
RelativePath string `json:"path"`
URL string `json:"url"`
LFS bool... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/client.go | pkg/hfdownloader/client.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
"time"
)
// DefaultEndpoint is the default HuggingFace Hub URL.
// Can be overridden via Settings.Endpoint for mirrors or enterprise deployments.
// Credits: Cu... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/downloader.go | pkg/hfdownloader/downloader.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"context"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"runtime"
"sync"
"sync/atomic"
"time"
)
// progressReader wraps an io.Reader and emits progress events during reads.
type progressReader struct {
reader io.Reader... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/types.go | pkg/hfdownloader/types.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import "time"
// Job defines what to download from the HuggingFace Hub.
//
// A Job specifies the repository, revision, and optional filters for selecting
// which files to download. The Repo field is required and must be in
// "owner/name... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/errors.go | pkg/hfdownloader/errors.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"errors"
"fmt"
)
// Common errors returned by the library.
var (
// ErrInvalidRepo is returned when the repository ID is not in "owner/name" format.
ErrInvalidRepo = errors.New("invalid repository ID: expected owner/name forma... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/utils.go | pkg/hfdownloader/utils.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader
import (
"context"
"errors"
"fmt"
"strings"
"time"
)
// IsValidModelName checks if the model name is in "owner/name" format.
func IsValidModelName(modelName string) bool {
if modelName == "" || !strings.Contains(modelName, "/") {
r... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/example_test.go | pkg/hfdownloader/example_test.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package hfdownloader_test
import (
"context"
"fmt"
"os"
"github.com/bodaay/HuggingFaceModelDownloader/pkg/hfdownloader"
)
func ExampleDownload() {
job := hfdownloader.Job{
Repo: "hf-internal-testing/tiny-random-gpt2",
Revision: "main",
}
cfg :... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/pkg/hfdownloader/doc.go | pkg/hfdownloader/doc.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
/*
Package hfdownloader provides a Go library for downloading models and datasets
from the HuggingFace Hub with resume support, multipart downloads, and verification.
# Features
- Resumable downloads: Interrupted downloads automatically resume from where the... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/cmd/hfdownloader/main.go | cmd/hfdownloader/main.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package main
import (
"os"
"github.com/bodaay/HuggingFaceModelDownloader/internal/cli"
)
// Version is set at build time via ldflags
var Version = "2.3.0-dev"
func main() {
if err := cli.Execute(Version); err != nil {
os.Exit(1)
}
}
| go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/tui/progress.go | internal/tui/progress.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package tui
import (
"fmt"
"os"
"runtime"
"sort"
"strings"
"sync"
"time"
"unicode/utf8"
"golang.org/x/term"
"github.com/bodaay/HuggingFaceModelDownloader/pkg/hfdownloader"
)
// LiveRenderer renders a cross-platform, adaptive, colorful progress tabl... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/assets/embed.go | internal/assets/embed.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
// Package assets provides embedded static files for the web UI.
package assets
import (
"embed"
"io/fs"
)
// staticFiles contains the embedded static files for the web interface.
//
//go:embed static/*
var staticFiles embed.FS
// StaticFS returns the files... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/api.go | internal/server/api.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"context"
"encoding/json"
"net/http"
"strings"
"time"
"github.com/bodaay/HuggingFaceModelDownloader/pkg/hfdownloader"
)
// DownloadRequest is the request body for starting a download.
// Note: Output path is NOT configurable via ... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/websocket.go | internal/server/websocket.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"encoding/json"
"log"
"net/http"
"sync"
"time"
"github.com/gorilla/websocket"
)
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
// Allow all origins ... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/api_test.go | internal/server/api_test.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
)
func newTestServer() *Server {
cfg := Config{
Addr: "127.0.0.1",
Port: 0, // Random port
ModelsDir: "./test_models",
DatasetsDir: "./test_d... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/websocket_test.go | internal/server/websocket_test.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"testing"
"time"
)
func TestWSHub_Broadcast(t *testing.T) {
hub := NewWSHub()
go hub.Run()
// Give hub time to start
time.Sleep(10 * time.Millisecond)
// Test broadcast doesn't panic with no clients
hub.Broadcast("test", map[s... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/server.go | internal/server/server.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
// Package server provides the HTTP server for the web UI and REST API.
package server
import (
"context"
"fmt"
"io/fs"
"log"
"net/http"
"time"
"github.com/bodaay/HuggingFaceModelDownloader/internal/assets"
)
// Config holds server configuration.
type ... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/integration_test.go | internal/server/integration_test.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
//go:build integration
package server
import (
"bytes"
"context"
"encoding/json"
"net"
"net/http"
"strconv"
"testing"
"time"
)
// getFreePort finds an available port
func getFreePort() int {
l, _ := net.Listen("tcp", "127.0.0.1:0")
defer l.Close()
... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/jobs.go | internal/server/jobs.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"context"
"crypto/rand"
"encoding/hex"
"sync"
"time"
"github.com/bodaay/HuggingFaceModelDownloader/pkg/hfdownloader"
)
// JobStatus represents the state of a download job.
type JobStatus string
const (
JobStatusQueued JobSt... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/server/jobs_test.go | internal/server/jobs_test.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package server
import (
"testing"
"time"
)
func TestJobManager_CreateJob(t *testing.T) {
cfg := Config{
ModelsDir: "./test_models",
DatasetsDir: "./test_datasets",
Concurrency: 2,
MaxActive: 1,
}
hub := NewWSHub()
go hub.Run()
mgr := NewJo... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/cli/root.go | internal/cli/root.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"context"
"encoding/json"
"fmt"
"io"
"os"
"os/signal"
"path/filepath"
"strings"
"sync"
"syscall"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
"github.com/bodaay/HuggingFaceModelDownloader/internal/tui"
"github.com/bodaay/Hugg... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/cli/config.go | internal/cli/config.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)
// DefaultConfig returns the default configuration.
func DefaultConfig() map[string]any {
return map[string]any{
"output": "Sto... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/cli/serve.go | internal/cli/serve.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"context"
"fmt"
"os"
"os/signal"
"strings"
"syscall"
"github.com/spf13/cobra"
"github.com/bodaay/HuggingFaceModelDownloader/internal/server"
)
func newServeCmd(ro *RootOpts) *cobra.Command {
var (
addr string
p... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
bodaay/HuggingFaceModelDownloader | https://github.com/bodaay/HuggingFaceModelDownloader/blob/fd209ac449f0237f98b89e97915b9c250ff70c46/internal/cli/version.go | internal/cli/version.go | // Copyright 2025
// SPDX-License-Identifier: Apache-2.0
package cli
import (
"fmt"
"runtime"
"runtime/debug"
"github.com/spf13/cobra"
)
// BuildInfo holds version and build information.
type BuildInfo struct {
Version string
GoVersion string
OS string
Arch string
Commit string
BuildTime ... | go | Apache-2.0 | fd209ac449f0237f98b89e97915b9c250ff70c46 | 2026-01-07T10:05:21.869383Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/entry.go | entry.go | package main
import (
"encoding/json"
"os"
)
var Hostname string = "unknown"
type Entry struct {
Host string `json:"host"`
Message string `json:"message"`
}
func (e *Entry) ToJSON() []byte {
e.Host = Hostname
dump, _ := json.Marshal(e)
return dump
}
func init() {
Hostname, _ = os.Hostname()
}
| go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/receiver.go | receiver.go | package main
import (
"bufio"
"log"
"net"
"os"
"regexp"
"github.com/ActiveState/tail"
)
var (
ValidJSON = regexp.MustCompile("\\{.*\\}")
)
type Receiver struct {
Host string // listen address
Port int // listen port
messages chan []byte // incomming messages
}
// create a new receiver server
func New... | go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/config.go | config.go | package main
import (
"encoding/json"
"io/ioutil"
)
type Config struct {
Bind string `json:"bind"` // interface to bind to (0.0.0.0 for all)
Port int `json:"port"` // listen port
Server string `json:"server"` // remote server to publish logs to
DiskBufferP... | go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/shipper_test.go | shipper_test.go | package main
import (
"bytes"
"net"
"testing"
)
type StubConn struct {
net.Conn
buffer *bytes.Buffer
}
func (sc StubConn) Write(p []byte) (int, error) {
return sc.buffer.Write(p)
}
func TestWriteWithBackoff(t *testing.T) {
conn := StubConn{buffer: new(bytes.Buffer)}
s := Shipper{conn}
s.WriteWithBackoff(... | go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/main.go | main.go | package main
import (
"flag"
"log"
"time"
)
var (
ConfigPath = flag.String("config", "/etc/log-stream.json", "Config File Path")
)
func main() {
flag.Parse()
config, err := ReadConfigFile(*ConfigPath)
if err != nil {
log.Fatalf("Config: Error: %s\n", err)
}
r := NewReceiver(config.Bind, config.Port, con... | go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
gocardless/logjam | https://github.com/gocardless/logjam/blob/8831e6e12043885c7f8181a8e092aa5f26497194/shipper.go | shipper.go | package main
import (
"log"
"net"
"os"
"time"
"github.com/ActiveState/tail"
)
type Shipper struct {
net.Conn
}
// create a new shipper client
func NewShipper(proto string, addr string) (*Shipper, error) {
conn, err := net.Dial(proto, addr)
if err != nil {
return nil, err
}
return &Shipper{conn}, nil
}
... | go | MIT | 8831e6e12043885c7f8181a8e092aa5f26497194 | 2026-01-07T10:05:21.970057Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/interface.go | pkg/infra/interface.go | package infra
import (
"time"
"github.com/hyperledger-twgc/tape/internal/fabric/protoutil"
"github.com/hyperledger/fabric-protos-go-apiv2/common"
)
const (
FULLPROCESS = 6
TRAFFIC = 7
OBSERVER = 0
ENDORSEMENT = 4
COMMIT = 3
PROPOSALFILTER = 4
COMMITFILTER = 3
QUERYFILTER = 2
)
/*
to do... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/infra_suite_test.go | pkg/infra/infra_suite_test.go | package infra_test
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestInfra(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Infra Suite")
}
| go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/observer_test.go | pkg/infra/observer/observer_test.go | package observer_test
import (
"context"
"os"
"sync"
"time"
"github.com/hyperledger-twgc/tape/e2e"
"github.com/hyperledger-twgc/tape/e2e/mock"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger-twgc/tape/pkg/infra/observer"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
l... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/observer.go | pkg/infra/observer/observer.go | package observer
import (
"context"
"time"
"github.com/hyperledger-twgc/tape/pkg/infra"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger-twgc/tape/pkg/infra/trafficGenerator"
"github.com/hyperledger/fabric-protos-go-apiv2/peer"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/commitObserver.go | pkg/infra/observer/commitObserver.go | package observer
import (
"fmt"
"math"
"sync"
"time"
"github.com/opentracing/opentracing-go"
"github.com/hyperledger-twgc/tape/internal/fabric/protoutil"
"github.com/hyperledger-twgc/tape/pkg/infra"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger/fabric-protos-go-apiv2/common"
"... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/block_collector.go | pkg/infra/observer/block_collector.go | package observer
import (
"context"
"fmt"
"sync"
"time"
"github.com/hyperledger-twgc/tape/pkg/infra"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger-twgc/tape/pkg/infra/bitmap"
"github.com/hyperledger/fabric-protos-go-apiv2/peer"
"github.com/pkg/errors"
log "github.com/sirupsen/l... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/endorsementObersver.go | pkg/infra/observer/endorsementObersver.go | package observer
import (
"fmt"
"sync"
"time"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
log "github.com/sirupsen/logrus"
)
type EndorseObserver struct {
Envs chan *basic.TracingEnvelope
n int
logger *log.Logger
Now time.Time
once *sync.Once
finishCh chan struct{}
}
func Cr... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/benchmark_test.go | pkg/infra/observer/benchmark_test.go | //go:build !race
// +build !race
package observer_test
import (
"context"
"sync"
"testing"
"github.com/opentracing/opentracing-go"
"github.com/hyperledger-twgc/tape/e2e/mock"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger-twgc/tape/pkg/infra/observer"
"github.com/hyperledger-twgc... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/observerFactory.go | pkg/infra/observer/observerFactory.go | package observer
import (
"context"
"sync"
"github.com/hyperledger-twgc/tape/pkg/infra"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
)
type ObserverFactory struct {
config basic.Config
crypto infra.Crypto
blockCh chan *AddressedBlock
logg... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/endorsementObersver_test.go | pkg/infra/observer/endorsementObersver_test.go | package observer_test
import (
"sync"
"github.com/hyperledger-twgc/tape/pkg/infra/basic"
"github.com/hyperledger-twgc/tape/pkg/infra/observer"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
log "github.com/sirupsen/logrus"
)
var _ = Describe("EndorsementObersver", func() {
BeforeEach(func() {
lo... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/block_collector_test.go | pkg/infra/observer/block_collector_test.go | package observer_test
import (
"context"
"sync"
"github.com/hyperledger-twgc/tape/pkg/infra/observer"
"github.com/google/uuid"
"github.com/hyperledger/fabric-protos-go-apiv2/peer"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
log "github.com/sirupsen/logrus"
)
func newAddressedBlock(addr int, blo... | go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Hyperledger-TWGC/tape | https://github.com/Hyperledger-TWGC/tape/blob/ef65cc6c14e3fdf5d47d919d2be880c1817efb56/pkg/infra/observer/observer_suite_test.go | pkg/infra/observer/observer_suite_test.go | package observer_test
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestObserver(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Observer Suite")
}
| go | Apache-2.0 | ef65cc6c14e3fdf5d47d919d2be880c1817efb56 | 2026-01-07T10:05:21.922186Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.