Skip to content

Commit 90083f2

Browse files
committed
Reformated test and changed temp doc text
- Reformated t/167-atomic-shdict.t with reindex - Added version for when cog and cas was introduced to docs - Made t/167-atomic-shdict.t run twice
1 parent ee71300 commit 90083f2

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6902,7 +6902,7 @@ it will be ignored when comparing.
69026902

69036903
In case of match, `nil, false` will be returned.
69046904

6905-
This method was first introduced in the `0.XX.X` release.
6905+
This method was first introduced in the `0.10.21` release.
69066906

69076907
See also [ngx.shared.DICT](#ngxshareddict).
69086908

@@ -7024,7 +7024,7 @@ remain unchanged. If both are `nil`, key-value pair will be deleted.
70247024

70257025
In case of mismatch, `false, false` will be returned.
70267026

7027-
This method was first introduced in the `0.XX.X` release.
7027+
This method was first introduced in the `0.10.21` release.
70287028

70297029
See also [ngx.shared.DICT](#ngxshareddict).
70307030

doc/HttpLuaModule.wiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5843,7 +5843,7 @@ it will be ignored when comparing.
58435843
58445844
In case of match, <code>nil, false</code> will be returned.
58455845
5846-
This method was first introduced in the <code>0.XX.X</code> release.
5846+
This method was first introduced in the <code>0.10.21</code> release.
58475847
58485848
See also [[#ngx.shared.DICT|ngx.shared.DICT]].
58495849
@@ -5948,7 +5948,7 @@ remain unchanged. If both are <code>nil</code>, key-value pair will be deleted.
59485948
59495949
In case of mismatch, <code>false, false</code> will be returned.
59505950
5951-
This method was first introduced in the <code>0.XX.X</code> release.
5951+
This method was first introduced in the <code>0.10.21</code> release.
59525952
59535953
See also [[#ngx.shared.DICT|ngx.shared.DICT]].
59545954

t/167-atomic-shdict.t

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use Test::Nginx::Socket::Lua;
55
#master_process_enabled(1);
66
#log_level('warn');
77

8-
#repeat_each(2);
8+
repeat_each(2);
99

1010
plan tests => repeat_each() * (blocks() * 3);
1111

@@ -62,7 +62,6 @@ GET /test
6262

6363

6464

65-
6665
=== TEST 3: CAS string value
6766
--- http_config
6867
lua_shared_dict dogs 1m;
@@ -430,6 +429,7 @@ nil nil false
430429
[error]
431430

432431

432+
433433
=== TEST 20: COG flags match but not value
434434
--- http_config
435435
lua_shared_dict dogs 1m;
@@ -450,6 +450,7 @@ GET /test
450450
[error]
451451

452452

453+
453454
=== TEST 21: COG value match but not flags
454455
--- http_config
455456
lua_shared_dict dogs 1m;
@@ -470,6 +471,7 @@ GET /test
470471
[error]
471472

472473

474+
473475
=== TEST 22: COG flags and value match
474476
--- http_config
475477
lua_shared_dict dogs 1m;
@@ -490,6 +492,7 @@ nil nil false
490492
[error]
491493

492494

495+
493496
=== TEST 23: CAS only value match
494497
--- http_config
495498
lua_shared_dict dogs 1m;
@@ -511,6 +514,7 @@ GET /test
511514
[error]
512515

513516

517+
514518
=== TEST 24: CAS only flags match
515519
--- http_config
516520
lua_shared_dict dogs 1m;
@@ -532,6 +536,7 @@ GET /test
532536
[error]
533537

534538

539+
535540
=== TEST 25: CAS set nil
536541
--- http_config
537542
lua_shared_dict dogs 1m;
@@ -553,6 +558,7 @@ nil nil true
553558
[error]
554559

555560

561+
556562
=== TEST 26: CAS as remove
557563
--- http_config
558564
lua_shared_dict dogs 1m;
@@ -574,6 +580,7 @@ nil nil true
574580
[error]
575581

576582

583+
577584
=== TEST 27: CAS as set value
578585
--- http_config
579586
lua_shared_dict dogs 1m;
@@ -595,6 +602,7 @@ foo string 10 true
595602
[error]
596603

597604

605+
598606
=== TEST 28: CAS as set flag
599607
--- http_config
600608
lua_shared_dict dogs 1m;
@@ -616,6 +624,7 @@ GET /test
616624
[error]
617625

618626

627+
619628
=== TEST 29: COG as get
620629
--- http_config
621630
lua_shared_dict dogs 1m;
@@ -636,6 +645,7 @@ GET /test
636645
[error]
637646

638647

648+
639649
=== TEST 30: COG get nothing
640650
--- http_config
641651
lua_shared_dict dogs 1m;
@@ -653,6 +663,3 @@ GET /test
653663
nil nil nil
654664
--- no_error_log
655665
[error]
656-
657-
658-

0 commit comments

Comments
 (0)