Jelajahi Sumber

修改函数名

yjp 1 tahun lalu
induk
melakukan
6089cff1d2
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      maputils/maputils_test.go

+ 2 - 2
maputils/maputils_test.go

@@ -2,7 +2,7 @@ package maputils
 
 import "testing"
 
-func TestGetValueInMap(t *testing.T) {
+func TestGetValueByPath(t *testing.T) {
 	testMap := map[string]any{
 		"foo1": map[string]any{
 			"foo1_sub": []any{
@@ -30,7 +30,7 @@ func TestGetValueInMap(t *testing.T) {
 	}
 }
 
-func TestGetValue(t *testing.T) {
+func TestGetValueByKey(t *testing.T) {
 	testMap := map[string]any{
 		"foo1": map[string]any{
 			"foo1_sub": []any{