You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: provider_darwin_test.go
    path of file: ./repos/sliver/implant/sliver/proxy
    
    the code of the file until where you have to start completion: package proxy

import (
	"context"
	"fmt"
	"os/exec"
	"strings"
	"testing"

	"github.com/stretchr/testify/assert"
)

var (
	ScutilDataHttpsHttp = "ScutilDataHttpsHttp"
	ScutilDataHttps     = "ScutilDataHttps"
	ScutilDataHttp      = "ScutilDataHttp"
)

var (
	ScutilBypassTest1 = "localhost"
	ScutilBypassTest2 = "myorg1.com"
	ScutilBypassTest3 = "endpoint.myorg2.com"
	ScutilBypassTest4 = ".myorg3.com"
	ScutilBypassTest5 = "*.myorg4.com"
	ScutilBypassTest6 = "test.endpoint.myorg5.com"
	ScutilBypassTest7 = "test.test.*.*.com"
)

var providerDarwinTestCasesNoBypass = []struct {
	testType string
	test     string
}{
	{ScutilDataHttpsHttp,
		"<dictionary> {\n  HTTPSEnable : 1\n HTTPSPort : 1234\n  HTTPSProxy : 1.2.3.4\n HTTPEnable : 1\n  " +
			"HTTPPort : 1234\n  HTTPProxy : 1.2.3.4\n}"},
	{ScutilDataHttpsHttp,
		"         <dictionary> {   \n  HTTPSEnable:1    \nHTTPSPort :  1234\n  HTTPSProxy :  1.2.3.4\n " +
			"HTTPEnable : 1   \n  HTTPPort :      1234\nHTTPProxy: 1.2.3.4   \n    }"},
	{ScutilDataHttps,
		"<dictionary> {\n  HTTPEnable : 0\n  HTTPSEnable : 1\n  HTTPSPort : 1234\n  HTTPSProxy : 1.2.3.4\n}"},
	{ScutilDataHttps,
		"<dictionary> {\n   HTTPEnable: 0\n  HTTPSEnable: 1\nHTTPSPort :      1234\n     HTTPSProxy:   1.2.3.4\n}"},
	{ScutilDataHttp,
		"<dictionary> 
    
func TestParseScutildata_Read_HTTPS_BYPASS_TARGET_URL(t *testing.T) {
	a := assert.New(t)

	c := newDarwinTestProvider()

	command := providerDarwinTestCaseBypass

	protocol := "https"

	// test empty target URL
	targetUrl := ParseTargetURL("", "")
	expectedProxy, err := c.parseScutildata(protocol, targetUrl, "echo", command)
	// test error is nil
	a.Nil(err)
	// test expected proxy matches hardcoded proxy
	a.Equal(&proxy{src: "State:/Network/Global/Proxies", host: "1.2.3.4", port: 1234},
		expectedProxy)
	// test proxy is not nil
	a.NotNil(c.parseScutildata(protocol, targetUrl, "echo", command))

	// tests https
	for _, tests := range bypassProxySettingsHostsDomains {
		for _, test := range tests {
			for urlStr, result := range test {
				targetUrl := ParseTargetURL(urlStr, "")
				expectedProxy, err := c.parseScutildata(protocol, targetUrl, "echo", command)
				// test error is nil
				a.Nil(err)
				if result == true {
					// test https proxy is nil
					a.Nil(expectedProxy)
				} else {
					// test expected https proxy matches hardcoded proxy
					a.Equal(&proxy{src: "State:/Network/Global/Proxies", host: "1.2.3.4", port: 1234},
						expectedProxy)
				}
			}
		}
	}

	//tests http
	protocol = "http"
	for _, tests := range bypassProxySettingsHostsDomains {
		for _, test := range tests {
			for urlStr := range test {
				targetUrl := ParseTargetURL(urlStr, "")
				expectedProxy, err := c.parseScutildata(protocol, targetUrl, "echo", command)
				// test error is returned correctly
				a.Equal(isNotFound(err), true)
				// test proxy is nil
				a.Nil(expectedProxy)
			}
		}
	}
}