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: net_test.go
    path of file: ./repos/steampipe/pkg/utils
    
    the code of the file until where you have to start completion: package utils

import (
	"errors"
	"net"
	"syscall"
	"testing"
)

// TestIsPortBindable tests the IsPortBindable function - assumes t
    
func TestIsPortBindable(t *testing.T) {
	// Test case 1: Port is bindable
	err := IsPortBindable("localhost", 8080)
	if err != nil {
		t.Errorf("Expected no error, but got: %v", err)
	}

	ln, err := net.Listen("tcp", net.JoinHostPort("localhost", "8080"))
	if err != nil {
		t.Fatalf("Expected no error, but got: %v", err)
	}
	defer ln.Close()
	// Test case 2: Port is already in use
	err = IsPortBindable("localhost", 8080)
	if err == nil {
		t.Error("Expected an error, but got nil")
	} else {
		expectedErr := syscall.EADDRINUSE
		if !errors.Is(err, expectedErr) {
			t.Errorf("Expected error: %v, but got: %v", expectedErr, err)
		}
	}
}