Pārlūkot izejas kodu

修改函数名

yjp 1 gadu atpakaļ
vecāks
revīzija
6089cff1d2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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{