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: nexus_test.go
    path of file: ./repos/erda/internal/apps/dop/services/org
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2
    
func Test_needEnableNexusOrgGroupRepos(t *testing.T) {
	type args struct {
		org       *orgpb.Org
		nexusAddr string
	}
	tests := []struct {
		name string
		args args
		want bool
	}{
		{
			name: "no nexus addr",
			args: args{
				nexusAddr: "",
			},
			want: false,
		},
		{
			name: "crossCluster but not publisher",
			args: args{
				org:       &orgpb.Org{EnableReleaseCrossCluster: true, PublisherID: 0},
				nexusAddr: "mock",
			},
			want: true,
		},
		{
			name: "is publisher but not crossCluster",
			args: args{
				org:       &orgpb.Org{EnableReleaseCrossCluster: false, PublisherID: 1},
				nexusAddr: "mock",
			},
			want: true,
		},
		{
			name: "crossCluster and is publisher",
			args: args{
				org:       &orgpb.Org{EnableReleaseCrossCluster: true, PublisherID: 1},
				nexusAddr: "mock",
			},
			want: true,
		},
		{
			name: "neither crossCluster nor publisher",
			args: args{
				org:       &orgpb.Org{EnableReleaseCrossCluster: false, PublisherID: 0},
				nexusAddr: "mock",
			},
			want: false,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := needEnableNexusOrgGroupRepos(tt.args.nexusAddr, tt.args.org); got != tt.want {
				t.Errorf("needEnableNexusOrgGroupRepos() = %v, want %v", got, tt.want)
			}
		})
	}
}