Browse Source

fixes to pass go vet and inclusion in tests script

profile-password-2
Dan Ballard 1 year ago
parent
commit
583a8013d6
3 changed files with 6 additions and 5 deletions
  1. 1
    1
      peer/cwtch_peer.go
  2. 4
    4
      protocol/ControlChannel.pb.go
  3. 1
    0
      testing/tests.sh

+ 1
- 1
peer/cwtch_peer.go View File

@@ -91,7 +91,7 @@ func (cp *CwtchPeer) ImportGroup(exportedInvite string) (groupID string, err err
if err == nil {
edpk := ed25519.PublicKey(pk)
onion := exportedInvite[5:21]
cp.Profile.AddContact(onion, &model.PublicProfile{"", edpk, true, false, onion})
cp.Profile.AddContact(onion, &model.PublicProfile{Name:"", Ed25519PublicKey: edpk, Trusted: true, Blocked: false, Onion: onion})
cp.Profile.ProcessInvite(cpp.GetGroupChatInvite(), onion)
return cpp.GroupChatInvite.GetGroupName(), nil
}

+ 4
- 4
protocol/ControlChannel.pb.go View File

@@ -147,7 +147,7 @@ func (*OpenChannel) ProtoMessage() {}
func (*OpenChannel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }

var extRange_OpenChannel = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}

func (*OpenChannel) ExtensionRangeArray() []proto.ExtensionRange {
@@ -182,7 +182,7 @@ func (*ChannelResult) ProtoMessage() {}
func (*ChannelResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }

var extRange_ChannelResult = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}

func (*ChannelResult) ExtensionRangeArray() []proto.ExtensionRange {
@@ -239,7 +239,7 @@ func (*EnableFeatures) ProtoMessage() {}
func (*EnableFeatures) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }

var extRange_EnableFeatures = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}

func (*EnableFeatures) ExtensionRangeArray() []proto.ExtensionRange {
@@ -265,7 +265,7 @@ func (*FeaturesEnabled) ProtoMessage() {}
func (*FeaturesEnabled) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }

var extRange_FeaturesEnabled = []proto.ExtensionRange{
{100, 536870911},
{Start: 100, End: 536870911},
}

func (*FeaturesEnabled) ExtensionRangeArray() []proto.ExtensionRange {

+ 1
- 0
testing/tests.sh View File

@@ -18,3 +18,4 @@ go test ${1} -coverprofile=server.cover.out -v ./server
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
rm -rf *.cover.out
go list ./... | xargs go vet

Loading…
Cancel
Save