hunk.code_window: 	// Basic
   	Enable                        *bool
   	EnableSyncWithLdap            *bool
   	EnableSyncWithLdapIncludeAuth *bool
   	Verify  *bool
   	Encrypt *bool
   	IdpUrl                      *string
   	IdpDescriptorUrl            *string
   	AssertionConsumerServiceURL *string
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit: 	Verify      *bool
   	Encrypt     *bool
   	SignRequest *bool
  
hunk.file_path: model/config.go
hunk.type: replace
file: // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  package model
  
  import (
  	"strings"
  	"testing"
  
  	"github.com/stretchr/testify/require"
  )
  
  func TestEmojiIsValid(t *testing.T) {
  	emoji := Emoji{
  		Id:        NewId(),
  		CreateAt:  1234,
  		UpdateAt:  1234,
  		DeleteAt:  0,
  		CreatorId: NewId(),
  		Name:      "name",
  	}
  
  	if err := emoji.IsValid(); err != nil {
  		t.Fatal(err)
  	}
  
  	emoji.Id = "1234"
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.Id = NewId()
  	emoji.CreateAt = 0
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.CreateAt = 1234
  	emoji.UpdateAt = 0
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.UpdateAt = 1234
  	emoji.CreatorId = strings.Repeat("1", 27)
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.CreatorId = NewId()
  	emoji.Name = strings.Repeat("1", 65)
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.Name = ""
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.Name = strings.Repeat("1", 64)
  	require.Nil(t, emoji.IsValid())
  
  	emoji.Name = "name-"
  	require.Nil(t, emoji.IsValid())
  
  	emoji.Name = "name_"
  	require.Nil(t, emoji.IsValid())
  
  	emoji.Name = "name:"
  	require.NotNil(t, emoji.IsValid())
  
  	emoji.Name = "croissant"
  	require.NotNil(t, emoji.IsValid())
  }
  